/* تحسين العرض للكمبيوتر والتابلت - منع التداخل مع الشريط الجانبي */

/* Main Content */
.main-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 8px;
}


/* يطبق فقط على صفحة dashboard - تقليل المسافة يمين ويسار */


/* Page Content */
#dashboard-page.page-content {
    margin: 0 !important;
    max-width: 1200px !important;
    margin-left: -3px;
    margin-right: -3px;
    
}

/* Dashboard Page - توسيع العرض بشكل متساوٍ من اليمين واليسار */


/* Leaderboard - صفحة عادية مباشرة */
#leaderboard-page.page-content {
  max-width: 1200px;
  
  padding: 5px;
  box-sizing: border-box;
}

/* Leaderboard - موبايل عادي */
@media (max-width: 768px) {
  #leaderboard-page.page-content {
    padding: 15px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Dashboard Page */
#dashboard-page .page-content h2 {
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

/* إصلاح ظهور المؤشر في صفحة Dashboard */
#dashboard-page,
#dashboard-page *,
#dashboard-page .dashboard-container,
#dashboard-page .dashboard-unified-card,
#dashboard-page .dashboard-timer-balance-row,
#dashboard-page .center-balance-display,
#dashboard-page .dashboard-activity-timer,
#dashboard-page .dashboard-action-buttons {
  cursor: auto !important;
}

#dashboard-page button,
#dashboard-page .action-button,
#dashboard-page .secondary-button,
#dashboard-page .action-icon,
#dashboard-page .copy-btn,
#dashboard-page a,
#dashboard-page [onclick],
#dashboard-page [data-page] {
  cursor: pointer !important;
}

#dashboard-page input,
#dashboard-page textarea,
#dashboard-page select {
  cursor: text !important;
}

/* Dashboard Header with User Avatar and Actions */
#dashboard-page .dashboard-header {
  position: absolute;
  top: 20px;
  left: 280px; /* Start after sidebar (280px = 260px sidebar + 20px margin) */
  right: 20px;
  z-index: 1000;
  display: flex; /* Show on desktop */
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 25px 0 25px;
  box-sizing: border-box;
}


#dashboard-page .dashboard-header > * {
  pointer-events: auto;
}

/* Hide sidebar avatar in dashboard page on desktop */
#dashboard-page .sidebar-header {
  display: none;
}




/* Balance Privacy Toggle Button Styles - Static & Clean */
.balance-privacy-toggle,
#dashboard-page .balance-privacy-toggle {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: var(--text-color) !important;
  font-size: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transition: none !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: auto !important;
  height: auto !important;
  box-shadow: none;
  outline: none !important;
  top: 0 !important;
  transform: none !important;
  order: 3 !important;
}

.balance-privacy-toggle:hover,
.balance-privacy-toggle:active,
.balance-privacy-toggle:focus,
#dashboard-page .balance-privacy-toggle:hover,
#dashboard-page .balance-privacy-toggle:active,
#dashboard-page .balance-privacy-toggle:focus {
  opacity: 1 !important;
  background: none !important;
  transform: none !important;
  box-shadow: none;
  outline: none !important;
}

.balance-privacy-toggle i {
  font-size: 18px !important;
  color: inherit !important;
}

.balance-hidden {
  font-family: monospace !important;
  letter-spacing: 2px !important;
  color: var(--text-color) !important;
  opacity: 0.7 !important;
}

/* Dark theme compatibility */
.dark-theme #dashboard-page .balance-privacy-toggle {
  color: #ffffff !important;
  opacity: 1 !important;
}

.dark-theme #dashboard-page .balance-privacy-toggle:hover {
  background: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.dark-theme #dashboard-page .balance-privacy-toggle:active {
  background: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.dark-theme #dashboard-page .balance-privacy-toggle i.fa-eye-slash {
  color: #ffffff !important;
}

.dark-theme #dashboard-page .balance-privacy-toggle i.fa-eye {
  color: #ffffff !important;
}

.dark-theme #dashboard-page .balance-privacy-toggle:hover i.fa-eye-slash {
  color: #ffffff !important;
}

.dark-theme #dashboard-page .balance-privacy-toggle:hover i.fa-eye {
  color: #ffffff !important;
}

/* للوضع المظلم */
.dark-theme .balance-label {
  color: #ffffff;
}

.dark-theme .balance-value #user-coins {
  color: #ffffff;
}

.dark-theme .balance-currency {
  color: #ffffff;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .balance-privacy-toggle,
  #dashboard-page .balance-privacy-toggle {
    font-size: 18px !important;
    padding: 4px 8px !important;
    opacity: 0.7 !important;
    order: 3 !important;
    top: 0vh !important;
    left: 0px !important;
  }

  .balance-privacy-toggle i {
    font-size: 18px !important;
  }
}






  #dashboard-page .balance-currency-logo {
  width: 48px;
  height: 48px;
  left: 0px;

  object-fit: contain;
  display: block;
}


@media (max-width: 768px) {

  /* Network Selector Styles */
  .network-selector-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px !important;
    z-index: 20;
    margin-top: 12px !important;
    width: auto;
    max-width: calc(100% - 60px);
    padding-left: 0;
    margin-left: 0;
  }
}
  .network-selector {
    background: var(--card-background, #fff);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 10px;
    padding: clamp(5px, 1.5vw, 8px) clamp(10px, 2.5vw, 16px) clamp(5px, 1.5vw, 8px) clamp(8px, 2vw, 12px);
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 1.5vw, 8px);
    cursor: pointer;
    transition: border-color 0.2s ease;
    backdrop-filter: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    min-width: 0;
    width: auto;
    max-width: calc(100vw - 80px);
    justify-content: space-between;
    z-index: 3;
  }

  .network-selector:hover {
    border-color: rgba(102, 126, 234, 0.4);
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }

  .network-info {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.5vw, 8px);
    flex: 0 1 auto;
  }

  .network-logo {
    width: clamp(18px, 5vw, 24px);
    height: clamp(18px, 5vw, 24px);
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
  }

  .network-name {
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 600;
    color: #1a202c;
    font-family: 'Poppins', 'Inter', sans-serif;
    text-align: center !important;
    white-space: nowrap;
  }

  /* Beautiful Chain Icon Styles */
  .chain-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 clamp(2px, 1vw, 6px);
    flex-shrink: 0;
  }

  .chain-icon {
    color: #667eea;
    transition: none;
    filter: none;
    animation: none;
    width: clamp(14px, 4vw, 18px);
    height: clamp(14px, 4vw, 18px);
  }

  .chain-icon:hover {
    color: #5a67d8;
    transform: none;
    filter: none;
  }

  .chain-pulse {
    display: none;
    animation: chainRipple 2s infinite;
    pointer-events: none;
  }

  @keyframes chainPulse {
    0%, 100% {
      transform: none;
    }
    50% {
      transform: none;
    }
  }

  @keyframes chainRipple {
    0% {
      transform: none;
      opacity: 1;
    }
    100% {
      transform: none;
      opacity: 0;
    }
  }

  /* Dark theme for chain icon */
  .dark-theme .chain-icon {
    color: #6ba5e7;
    filter: drop-shadow(0 2px 4px rgba(107, 165, 231, 0.3));
  }

  .dark-theme .chain-icon:hover {
    color: #4a90e2;
    filter: drop-shadow(0 4px 8px rgba(107, 165, 231, 0.5));
  }

  .dark-theme .chain-pulse {
    background: radial-gradient(circle, rgba(107, 165, 231, 0.3) 0%, transparent 70%);
  }

  .network-arrow {
    color: #718096;
    font-size: clamp(9px, 2.5vw, 12px);
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .network-selector.active .network-arrow {
    transform: rotate(180deg);
  }

  /* Network Dropdown */
  .network-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--card-background, #fff);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000 !important;
    display: none;
    min-width: 300px;
    max-width: 380px;
    width: calc(100vw - 40px);
  }

  .network-dropdown.show {
    display: block;
  }

  .account-address-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }

  .account-address-label {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  .account-address-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(247, 250, 252, 0.9);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #2d3748;
    min-height: 48px;
    transition: all 0.2s ease;
    flex-direction: row;
    justify-content: space-between;
  }

  .account-address-display:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(247, 250, 252, 1);
    transform: none;
    box-shadow: none;
  }

  .account-address-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
    flex: 1;
  }

  .account-view-link {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
    margin-right: 8px;
    white-space: nowrap;
    transition: color 0.2s ease;
    cursor: pointer;
  }

  .account-view-link:hover {
    color: #764ba2;
    text-decoration: underline;
  }

  .dark-theme .account-view-link {
    color: #6ba5e7;
  }

  .dark-theme .account-view-link:hover {
    color: #7cb3f0;
  }

  .account-copy-btn {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .account-copy-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    transform: none;
  }

  .account-view-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .account-view-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
  }

  .dark-theme .account-view-btn {
    color: #6ba5e7;
  }

  .dark-theme .account-view-btn:hover {
    color: #7cb3f0;
    background: rgba(107, 165, 231, 0.15);
  }

  /* Dark theme for network selector */
  .dark-theme .network-selector {
    background: var(--card-background, #1a1a2e);
    border: none;
  }

  .dark-theme .network-name {
    color: #ffffff;
  }

  .dark-theme .network-arrow {
    color: #a0aec0;
  }

  .dark-theme .network-dropdown {
    background: var(--card-background, rgba(42, 42, 42, 0.98));
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .dark-theme .account-address-label {
    color: #a0aec0;
  }

  .dark-theme .account-address-display {
    background: rgba(26, 32, 44, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    color: #e2e8f0;
  }

  .dark-theme .account-address-display:hover {
    border-color: rgba(107, 165, 231, 0.5);
    background: rgba(26, 32, 44, 1);
    box-shadow: none;
  }

  .dark-theme .account-copy-btn {
    color: #a0aec0;
  }

  .dark-theme .account-copy-btn:hover {
    color: #6ba5e7;
    background: rgba(107, 165, 231, 0.2);
  }

  /* Connect Wallet Wrapper - Light mode separator line */
  .connect-wallet-wrapper {
    border-top: 1px solid #e2e8f0 !important;
  }

  .dark-theme .connect-wallet-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  }


  /* Strong color for balance like in the image */
  .dark-theme .balance-value #user-coins {
    color: #ffffff !important;
    font-weight: 800 !important;
  }






#dashboard-page .balance-logo {
  order: 3 !important;
  top: -10vw !important;
}












#dashboard-page .dashboard-user-section {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

#dashboard-page .dashboard-user-avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(226, 232, 240, 0.4);
  backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: none;
  flex-shrink: 0;
}

#dashboard-page .dashboard-user-avatar:hover {
  transform: none;
  box-shadow: none;
}

#dashboard-page .dashboard-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#dashboard-page .dashboard-user-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  font-family: 'Poppins', 'Inter', sans-serif;
  text-shadow: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dashboard Action Icons */
#dashboard-page .dashboard-action-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}



#dashboard-page .action-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: none;
  backdrop-filter: none;
  border: 1px solid rgba(226, 232, 240, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#dashboard-page .fire-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

#dashboard-page .language-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: none;
    border: 1px solid rgba(226, 232, 240, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--card-background, #fff);
    color: #2196F3;
  }

  #dashboard-page .language-icon:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #1976D2;
  }

  .language-code {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #ffffff;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', 'Inter', sans-serif;
  }

  /* Language modal styles */
  .language-option:hover {
    background-color: #f5f5f5 !important;
    border-color: #2196F3 !important;
    cursor: pointer !important;
  }

  .language-option.selected {
    background-color: #e3f2fd !important;
    border-color: #2196F3 !important;
    box-shadow: none;
  }

  /* Language modal z-index fix to appear above dashboard header */
  #languageModal {
    z-index: 9999 !important;
  }

  #languageModal .modal-content {
    z-index: 10000 !important;
  }

  /* Dark theme for language modal */
  .dark-theme .language-option {
    background-color: var(--card-background) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
  }

  .dark-theme .language-option:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #6ba5e7 !important;
  }

  .dark-theme .language-option.selected {
    background-color: rgba(107, 165, 231, 0.2) !important;
    border-color: #6ba5e7 !important;
    box-shadow: none;
  }

  .dark-theme .modal-content {
    background-color: var(--card-background) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
  }

#dashboard-page .settings-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: var(--text-color);
}

#dashboard-page .action-icon:hover {
  transform: none;
  box-shadow: none;
}

#dashboard-page .action-icon i {
  font-size: 18px;
  z-index: 2;
}

/* Icon Badges and Values */
#dashboard-page .icon-badge,
#dashboard-page .icon-value {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #ffffff;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* للوضع المظلم */
.dark-theme #dashboard-page .dashboard-user-avatar {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme #dashboard-page .dashboard-user-name {
  background: linear-gradient(135deg, #6ba5e7 0%, #4a90e2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-theme #dashboard-page .action-icon {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme #dashboard-page .settings-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
  }

  .dark-theme #dashboard-page .theme-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
  }

  .dark-theme #dashboard-page .language-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #6ba5e7;
  }

  .dark-theme #dashboard-page .language-icon:hover {
    color: #4a90e2;    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .dark-theme .language-code {
    background: #2a2a2a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
  }

.dark-theme #dashboard-page .icon-badge,
.dark-theme #dashboard-page .icon-value {
  background: #2a2a2a;
  color: #ffffff;
  border: none;
}

.dark-theme #dashboard-page .dashboard-header {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



/* Referral Widget - شريط الإحالات العمودي بسيط */
#dashboard-page .referral-widget {
  position: absolute;
  top: 2px;
  right: -6px;
  
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 8px 0px;
  z-index: 10 !important;

}




#dashboard-page .referral-stats-item,
#dashboard-page .referral-invite-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 50px;
 
  
}

#dashboard-page .referral-stats-item:hover,
#dashboard-page .referral-invite-item:hover {
  transform: none;
}

#dashboard-page .referral-icon-container,
#dashboard-page .invite-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 60px;
  height: 60px;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
  
}


#dashboard-page .referral-emoji {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  object-fit: contain;
}

#dashboard-page .referral-count-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  line-height: 1.2;
  
  
}

#dashboard-page .referral-label-text,
#dashboard-page .invite-label-text {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-color);
}

#dashboard-page .invite-icon-container i {
  font-size: 24px;
  margin-bottom: 2px;
}

/* الوضع الداكن */
.dark-theme #dashboard-page .referral-count-text,
.dark-theme #dashboard-page .referral-label-text,
.dark-theme #dashboard-page .invite-label-text,
.dark-theme #dashboard-page .invite-icon-container i {
  color: #ffffff;
}









/* للموبايل - تصميم شريط علوي مثل الشريط السفلي */

 @media (max-width: 768px) {
  #dashboard-page .dashboard-header {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    position: fixed;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    margin: 0;
    height: auto;
    min-height: 56px;
    max-width: none;
    box-sizing: border-box;
    z-index: 1000;
    background: var(--card-background, #fff);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}


  /* Hide line on mobile */
  #dashboard-page .dashboard-header::after {
    display: none;
  }

  /* الوضع الليلي للهواتف فقط - لون متناسق مع باقي العناصر */
  .dark-theme #dashboard-page .dashboard-header {
    background: var(--card-background);
    border-bottom-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  /* إظهار avatar الشريط الجانبي في الموبايل */
  #dashboard-page .sidebar-header {
    display: flex;
  }

  #dashboard-page .dashboard-user-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 50px;
    flex-shrink: 0;
    margin-right: auto;
    min-width: 0;
  }

  #dashboard-page .dashboard-action-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 50px;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 0;
  }


  #dashboard-page .dashboard-user-avatar {
    width: 48px !important;
    height: 48px !important;
    border-width: 2px;
    flex-shrink: 0;
    align-self: center;
  }

  #dashboard-page .dashboard-user-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    align-self: center;
    line-height: 1.2;
    min-width: 0;
  }

  #dashboard-page .action-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    align-self: center;
  }

  #dashboard-page .action-icon i {
    font-size: 16px;
  }

  #dashboard-page .icon-badge,
  #dashboard-page .icon-value {
    font-size: 9px;
    padding: 1px 4px;
  }












/* بطاقة العداد الحديثة */
.dashboard-activity-timer {
  background: var(--card-background, #ffffff);
  backdrop-filter: none;
  border: none;
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-top: 4px;
  transition: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2 !important;
}



/* === الساعة جنب العداد === */
.timer-clock-inline {
  z-index: 10;
  flex-shrink: 0;
}

/* ساعة الرقاص */
.pendulum-clock {
  position: relative;
  width: 30px;
  height: auto;
  z-index: 15;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.clock-body {
  width: 26px;
  height: 26px;
  background: linear-gradient(145deg, #d4d4d4, #f0f0f0, #b8b8b8);
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.7),
    inset 0 -1px 3px rgba(0,0,0,0.1);
  border: 2px solid #aaa;
}

.clock-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 21px;
  height: 21px;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #fafafa 30%, #f0f0f0 70%, #e8e8e8 100%);
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.08);
}

/* علامات الساعات 12 نقطة - محسوبة لوجه 21px */
.clock-face::before {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 2px;
  background: #555;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
  box-shadow:
    0 16px 0 #555,
    -8px 8px 0 #555,
    8px 8px 0 #555,
    -4px 1px 0 0.3px #bbb,
    4px 1px 0 0.3px #bbb,
    -7.5px 4px 0 0.3px #bbb,
    7.5px 4px 0 0.3px #bbb,
    -7.5px 12px 0 0.3px #bbb,
    7.5px 12px 0 0.3px #bbb,
    -4px 15px 0 0.3px #bbb,
    4px 15px 0 0.3px #bbb;
}

/* نقطة المركز */
.clock-face::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #6366f1, #4f46e5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 0 3px rgba(99,102,241,0.4);
}

.clock-hands {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hour-hand, .minute-hand, .second-hand {
  position: absolute;
  transform-origin: 50% 100%;
  left: 50%;
  bottom: 50%;
}

.hour-hand {
  width: 1.5px;
  height: 6px;
  margin-left: -1.25px;
  background: #2d2d2d;
  border-radius: 2px 2px 0 0;
  z-index: 2;
  animation: none;
}

.minute-hand {
  width: 1px;
  height: 7px;
  margin-left: -0.75px;
  background: #444;
  border-radius: 1.5px 1.5px 0 0;
  z-index: 3;
  animation: none;
}

.second-hand {
  width: 0.8px;
  height: 8px;
  margin-left: -0.5px;
  background: #ef4444;
  border-radius: 1px 1px 0 0;
  z-index: 4;
  transition: none;
}

/* الرقاص الطويل */
.pendulum {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: pendulumSwing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
  margin-top: -1px;
}

.pendulum-rod {
  width: 1px;
  height: 8px;
  background: linear-gradient(180deg, #b0b0b0, #888, #b0b0b0);
  border-radius: 1px;
}

/* الرقاص متوقف افتراضيًا */
.dashboard-activity-timer .pendulum {
  animation: none;
  transform: rotate(0deg);
}

/* الرقاص يتحرك فقط عندما يكون العداد نشطًا */
.dashboard-activity-timer.activity-active .pendulum {
  animation: pendulumSwing 2s ease-in-out infinite alternate !important;
  transform-origin: top center;
}

.pendulum-weight {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 35% 35%, #e8e8e8, #bbb, #888);
  border-radius: 50%;
  border: 1px solid #999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.5);
  margin-top: -1px;
}

/* حركة الرقاص */
@keyframes pendulumSwing {
  0% { transform: rotate(-12deg); }
  100% { transform: rotate(12deg); }
}

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

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

/* تاج الساعة العلوي */
.clock-body::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 5px;
  background: linear-gradient(180deg, #d0d0d0, #b0b0b0);
  border-radius: 3px 3px 0 0;
  border: 1px solid #aaa;
  border-bottom: none;
  box-shadow: 0 -1px 2px rgba(0,0,0,0.1);
}

/* انعكاس زجاجي على وجه الساعة */
.clock-body::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 6px;
  width: 10px;
  height: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-activity-timer::before {
  display: none;
}

/* Mobile timer card */
@media (max-width: 768px) {
  .dashboard-activity-timer {
    background: var(--card-background, #ffffff);
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    overflow: visible;
    margin-top: 0;
  }

  .dashboard-activity-timer::before {
    display: none;
  }

  .dashboard-activity-timer::after {
    display: none;
  }

  .dark-theme .dashboard-activity-timer {
    background: var(--card-background, #1e293b);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }
}

.dashboard-activity-timer:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* صف Boost و XP/s تحت العد التنازلي مع خط فاصل */
.timer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  width: 100%;
  margin-top: 6px;
}

.timer-bottom-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dark-theme .timer-bottom-row {
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* صف العنوان القديم - غير مستخدم */
.timer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: none;
  width: 100%;
  margin-bottom: 2px;
}

.timer-title-clock {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* رأس العداد */
.dashboard-timer-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.dashboard-timer-title {
  display: none;
  align-items: center;
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  z-index: 15;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-color, #1f2937);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
  font-family: 'Poppins', 'Inter', sans-serif;
}

  .dashboard-timer-title .timer-bolt-icon {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Timer bolt icon - normal state */
.timer-bolt-icon {
  display: none !important;
  color: #9ca3af;
  transition: color 0.3s ease;
  margin-left: 4px;
}

/* Timer bolt icon - active state (golden/yellow) - no shadow, no animation */
.dashboard-activity-timer.activity-active .timer-bolt-icon {
  color: #fbbf24;
}

/* عرض معدل التجزئة */
.dashboard-hashrate-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #38b2ac;
  font-weight: 700;
  background: rgba(56, 178, 172, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 178, 172, 0.12);
  font-family: 'Inter', 'Raleway', sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hashrate-label {
  opacity: 0.8;
  
}

/* عرض العداد الرئيسي */
.dashboard-timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  z-index: 2 !important;
  position: relative;
}

/* صف XP/s و Boost */
.timer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  margin-top: 0;
  padding: 0 2px;
}

.countdown-with-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  position: relative;
  width: 100%;
}

.countdown-with-label .dashboard-timer-title {
  position: absolute;
  right: calc(50% + 75px);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(11px, 2.5vw, 13px);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  margin-right: 0;
}

.dashboard-countdown {
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  color: #1a1a1a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #1a1a1a;
  background-clip: unset;
  transition: color 0.3s ease;
  padding: 8px 0 6px;
}

.dashboard-timer-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* للوضع المظلم */
.dark-theme .dashboard-activity-timer {
  background: var(--card-background, #1e293b);
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
}

.dark-theme .clock-body {
  background: linear-gradient(145deg, #555, #3a3a3a, #4a4a4a);
  border-color: #666;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.08), inset 0 -1px 3px rgba(0,0,0,0.3);
}

.dark-theme .clock-face {
  background: radial-gradient(circle at 40% 35%, #1e1e2e 0%, #16162a 30%, #111 70%, #0a0a15 100%);
  border-color: #444;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}

/* علامات الساعة في الوضع الداكن - محسوبة لوجه 21px */
.dark-theme .clock-face::before {
  background: #999;
  box-shadow:
    0 16px 0 #999,
    -8px 8px 0 #999,
    8px 8px 0 #999,
    -4px 1px 0 0.3px #555,
    4px 1px 0 0.3px #555,
    -7.5px 4px 0 0.3px #555,
    7.5px 4px 0 0.3px #555,
    -7.5px 12px 0 0.3px #555,
    7.5px 12px 0 0.3px #555,
    -4px 15px 0 0.3px #555,
    4px 15px 0 0.3px #555;
}

.dark-theme .clock-face::after {
  background: radial-gradient(circle, #818cf8, #6366f1);
  box-shadow: 0 0 5px rgba(129,140,248,0.5);
}

.dark-theme .hour-hand {
  background: #e0e0e0;
}

.dark-theme .minute-hand {
  background: #ccc;
}

.dark-theme .second-hand {
  background: #f87171;
}

.dark-theme .pendulum-rod {
  background: linear-gradient(180deg, #666, #555, #666);
}

.dark-theme .pendulum-weight {
  background: radial-gradient(circle at 35% 35%, #666, #444, #333);
  border-color: #555;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.1);
}

.dark-theme .clock-body::before {
  background: linear-gradient(180deg, #555, #444);
  border-color: #666;
}

.dark-theme .clock-body::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 100%);
}

.dark-theme .pendulum-clock {
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.4));
}

.dark-theme .dashboard-activity-timer:hover {
  box-shadow: none;
}

.dark-theme .dashboard-timer-title {
  color: var(--text-color, #e2e8f0);
}

.dark-theme .timer-header-row {
  border-bottom: none;
}

.dark-theme .dashboard-countdown {
  color: #ffffff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
}










/* يجب تعديل هذا هنا   */


.dashboard-container {
  position: relative;
  margin: 62px auto 2vh auto;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* حماية للأجهزة القصيرة - عدم التصاق المحتوى بالشريط */
@media (max-height: 600px) {
  .dashboard-container {
    margin-top: 58px;
  }
}

@media (max-height: 500px) {
  .dashboard-container {
    margin-top: 52px;
  }
}

.dashboard-timer-balance-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin: 0;
}

  @media (max-width: 768px) {

  
  .dashboard-activity-timer {
    margin: 0 auto 0;
    width: 100%;
    max-width: 100%;
    top: 0;
    margin-bottom: 0;
    transition: none;
    overflow: visible;
  }

  .dashboard-activity-timer:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  /* هاتف فقط: العداد في الوسط */
  .dashboard-timer-display {
    position: relative;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
  }

  /* XP/s يسار */
  .dashboard-timer-header {
    display: none !important;
  }

  .timer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  #dashboard-hashrate-display {
    position: static;
    transform: none;
    z-index: 20;
    flex-shrink: 0;
  }

  .dashboard-countdown {
    text-align: center !important;
    font-size: clamp(24px, 7vw, 34px);
    width: 100%;
    padding: 4px 0;
  }

  .dashboard-timer-title {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .timer-header-row {
    align-self: flex-start;
  }

  }

  .dashboard-action-buttons {
    margin: 16px auto 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    z-index: 2 !important;
  }



/* Primary Action Buttons (Top Row) - ثبات الأحجام */
.primary-action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  justify-content: center;
  flex-wrap: nowrap;
  z-index: 2 !important;
  width: 100%;
}


.action-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: none;
  min-width: 0;
  max-width: none;
  width: auto;
  justify-content: center;
  text-decoration: none;
  font-family: 'Poppins', 'Inter', sans-serif;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 2px 8px rgba(102,126,234,0.2);
  flex: 1;
  letter-spacing: 0.4px;
  height: 44px;
}

.action-button:hover {
  transform: none;
  box-shadow: none;
}

.action-button:active {
  transform: none;
}

.action-button i {
  font-size: 14px;
}

/* ✅ تحريك محتوى زر Start قليلاً لليسار */
.start-activity-btn span,
.start-activity-btn i {
  transform: translateX(-1px);
}

/* ✅ عكس ترتيب الأيقونة في اللغة العربية - الأيقونة قبل النص */
html[lang="ar"] .action-button,
html[dir="rtl"] .action-button,
.arabic .action-button,
[data-lang="ar"] .action-button {
  flex-direction: row-reverse;
}

/* Dark theme action buttons */
.dark-theme .action-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}

.dark-theme .action-button:hover {
  transform: none;
  box-shadow: none;
}

/* ─── Dashboard Social Media Section ─── */
.dashboard-social-media {
  background: var(--card-background);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}

.dashboard-social-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color);
}

.dashboard-social-header p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-light, #718096);
}

.dashboard-social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* RTL / Arabic support for social media section */
html[lang="ar"] .dashboard-social-media,
html[dir="rtl"] .dashboard-social-media,
[data-lang="ar"] .dashboard-social-media {
  flex-direction: row-reverse;
}

html[lang="ar"] .dashboard-social-header,
html[dir="rtl"] .dashboard-social-header,
[data-lang="ar"] .dashboard-social-header {
  text-align: right;
}

.dashboard-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-social-btn::after {
  display: none !important;
  content: none !important;
}

.dashboard-social-btn:hover::after {
  display: none !important;
}

.dashboard-social-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.dashboard-social-btn:active,
.dashboard-social-btn:focus,
.dashboard-social-btn:visited {
  outline: none;
  color: #fff;
}

.telegram-social {
  background: #0088cc;
  color: #fff;
}

.telegram-social svg {
  width: 20px;
  height: 20px;
}

.telegram-social:hover {
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.x-social {
  background: #000;
  color: #fff;
}

.x-social svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.x-social svg path {
  fill: #fff !important;
}

.x-social:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.explorer-social {
  background: none;
  padding: 0;
}

.explorer-social img {
  width: 32px !important;
  height: 32px !important;
  object-fit: cover;
  border-radius: 50% !important;
  display: block;
}

.explorer-social:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dark-theme .dashboard-social-media {
  background: var(--card-background);
}




/* Secondary Action Buttons - HIDDEN (removed from interface) */
.secondary-action-buttons {
  display: none !important;
}

.secondary-button {
  display: none !important;
}

.secondary-button:hover {
  transform: none;
  box-shadow: none;
  background: var(--card-background, #fff);
}

.secondary-button i {
  font-size: 16px;
  color: var(--text-color);
  opacity: 0.8;
}

.secondary-button span {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
}













/* Dark theme adjustments */
.dark-theme .secondary-button {
  background: var(--card-background);
  border: none !important;
  color: #ffffff;
}

.dark-theme .secondary-button:hover {
  transform: none;
  background: var(--card-background);
}

.dark-theme .secondary-button i {
  color: #ffffff;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .dashboard-action-buttons {
    margin: 16px auto 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    z-index: 2 !important;
  }

  .primary-action-buttons {
    gap: 8px;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .action-button {
    flex: 1;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    border-radius: 12px !important;
    gap: 7px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    font-family: 'Poppins', 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(102,126,234,0.2);
    cursor: pointer;
    transition: none;
    letter-spacing: 0.4px;
    height: 44px;
  }

  .action-button:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(102,126,234,0.2);
  }

  .action-button:active {
    transform: none;
    opacity: 0.85;
  }

  .action-button i {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  .secondary-action-buttons {
    display: none !important;
  }
}












  @media (min-width: 769px), (min-width: 820px), (min-width: 1024px), (min-width: 1180px) {

   .dashboard-activity-timer {
    width: 100%;
      max-width: 100%;
         margin: 4px 0 0;
         overflow: visible;
       }

.dashboard-container {
   margin: 15px auto 0 auto !important;
   padding: 0 5px !important;
   width: 100%;
   max-width: 100%;
   box-sizing: border-box;
 }

    .center-balance-display {
      display: flex;
      justify-content: center !important;
      align-items: center !important;
      margin-bottom: 16px !important;
       position: relative; 
    }

     .balance-showcase {
       border-radius: 0;
       display: flex;
       justify-content: center !important;
       align-items: center !important;
       gap: 0;
       width: 100%;
       backdrop-filter: none;
       user-select: none;
     }

    .balance-amount-container {
      display: flex;
      align-items: baseline;
      gap: 6px;
      position: relative;
      justify-content: center !important;
      flex-direction: row;
    }

    .balance-value #user-coins {
      font-size: 46px;
      font-weight: 800;
      color: #1f2937;
      line-height: 1;
      letter-spacing: -0.5px;
      margin: 0;
      text-align: center;
    }

    .balance-label {
      font-size: 11px;
      font-weight: 700;
      color: #6366f1;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin: 0; 
    }

    /* Network Selector Styles */
    .network-selector-container {
      display: flex;
      justify-content: center;
      margin-bottom: 14px;
      width: 100%;
      z-index: 20 !important;
      margin-top: 20px !important;
      padding-left: 0;
      margin-left: 0;
    }

    .secondary-action-buttons {
      display: none !important;
    }

    .action-button {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      box-shadow: 0 2px 8px rgba(102,126,234,0.2);
      font-size: 15px !important;
      flex: 1 !important;
      border-radius: 12px !important;
      border: none;
      visibility: visible;
      font-family: 'Poppins', 'Inter', sans-serif;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      transition: none;
      padding: 14px 22px;
      letter-spacing: 0.4px;
      height: 48px;
    }

    .action-button:hover {
      transform: none;
      box-shadow: 0 2px 8px rgba(102,126,234,0.2);
    }

    .action-button:active {
      transform: none;
    }

    .action-button i {
      font-size: 15px;
    }

    .dashboard-action-buttons {
      margin: 16px auto 0;
      width: 100%;
      max-width: 100%;
      padding: 0;
    }

    .primary-action-buttons {
      gap: 12px;
      margin-bottom: 0;
    }

    #dashboard-page .referral-widget {
      position: absolute !important;
      top: 45px;
      right: 0px !important;
      z-index: 998;
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 8px 0px;
      overflow: auto !important;
    }

  }













/* Theme modal z-index higher than dashboard header */
#themeModal {
  z-index: 2000 !important; /* Higher than dashboard header */
}

/* Sun icon (light mode) specific styling */
#dashboard-page .theme-icon i.fa-sun {
  color: #fbbf24 !important; /* Yellow for light mode like profile */
  transition: color 0.3s ease;
}

.dark-theme #dashboard-page .theme-icon i.fa-sun {
  color: #fbbf24 !important; /* Yellow in dark mode */
}

/* Moon icon (dark mode) specific styling */
#dashboard-page .theme-icon i.fa-moon {
  color: #818cf8 !important; /* Purple like profile moon */
  transition: color 0.3s ease;
}

.dark-theme #dashboard-page .theme-icon i.fa-moon {
  color: #818cf8 !important; /* Same purple in dark mode like profile */
}

/* Auto/adjust icon styling - keep as is */
#dashboard-page .theme-icon i.fa-adjust {
  color: #000000 !important; /* Black in light mode */
  transition: color 0.3s ease;
}

.dark-theme #dashboard-page .theme-icon i.fa-adjust {
  color: #fbbf24 !important; /* Yellow in dark mode */
}




@media (min-width: 769px) {
  #dashboard-page .dashboard-header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 10px !important; /* التصاق شبه كامل بالسقف */
    left: 270px !important; /* بعد الشريط الجانبي */
    right: 0px !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 1000 !important;
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
    padding: 0 25px !important;
    margin-bottom: 0 !important;
    justify-content: space-between !important;
    align-items: center !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    transition: none !important;
  }

  /* الوضع الليلي للكمبيوتر - بدون خلفية */
  .dark-theme #dashboard-page .dashboard-header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }


  #dashboard-page .dashboard-header > * {
    pointer-events: auto !important;
  }

  /* التأكد من ظهور جميع العناصر */
  #dashboard-page .dashboard-user-section,
  #dashboard-page .dashboard-action-icons,
  #dashboard-page .dashboard-user-avatar,
  #dashboard-page .dashboard-user-name,
  #dashboard-page .action-icon,
  #dashboard-page .fire-icon,
  #dashboard-page .heart-icon,
  #dashboard-page .settings-icon,
  #dashboard-page .theme-icon,
  #dashboard-page .language-icon,
  #dashboard-page .settings-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    transform: none !important;
  }

  /* عند طي الشريط الجانبي */
  .sidebar.collapsed ~ .main-content #dashboard-page .dashboard-header {
    left: 100px !important; /* بعد الشريط الجانبي المطوي */
    right: 20px !important;
  }
}






@media (min-width: 1440px) {
  #dashboard-page .dashboard-header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 10px !important; /* التصاق شبه كامل بالسقف */
    left: 309px !important; /* بعد الشريط الجانبي */
    right: 40px !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 1000 !important;
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
    padding: 0 25px !important;
    margin-bottom: 0 !important;
    justify-content: space-between !important;
    align-items: center !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    transition: none !important;
  }

  /* الوضع الليلي للكمبيوتر - بدون خلفية */
  .dark-theme #dashboard-page .dashboard-header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }


  #dashboard-page .dashboard-header > * {
    pointer-events: auto !important;
  }

  /* التأكد من ظهور جميع العناصر */
  #dashboard-page .dashboard-user-section,
  #dashboard-page .dashboard-action-icons,
  #dashboard-page .dashboard-user-avatar,
  #dashboard-page .dashboard-user-name,
  #dashboard-page .action-icon,
  #dashboard-page .fire-icon,
  #dashboard-page .heart-icon,
  #dashboard-page .settings-icon,
  #dashboard-page .theme-icon,
  #dashboard-page .language-icon,
  #dashboard-page .settings-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    transform: none !important;
  }

  /* عند طي الشريط الجانبي */
  .sidebar.collapsed ~ .main-content #dashboard-page .dashboard-header {
    left: 100px !important; /* بعد الشريط الجانبي المطوي */
    right: 20px !important;
  }



  /* Network Selector Styles */
  .network-selector-container {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    width: 100%;
    z-index: 20 !important;
    margin-top: 30px !important;
    padding-left: 0;
    margin-left: 0;
  }


  .center-balance-display {
    display: flex;
    position: relative;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 14px;
    width: 100% !important;
  }
  

  .balance-showcase {
     border-radius: 0 !important;
     box-shadow: none;
     display: flex;
     justify-content: center !important;
     align-items: center !important;
     gap: 0;
     width: 100%;
     backdrop-filter: none;
     user-select: none;
     font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
   }

 
  .balance-value #user-coins {
    font-size: 48px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    letter-spacing: -0.5px;
    margin: 0;
    text-align: center;
  }

  .balance-label {
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0; 
  }

  .balance-value {
    display: flex;
    align-items: baseline;
    justify-content: center !important;
    gap: 6px;
    flex-direction: row;
    position: relative;
    width: 100%;
  }

  .balance-amount-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
    position: relative;
    justify-content: center !important;
    flex-direction: row;
  }

  .balance-hidden {
      font-family: monospace !important;
      letter-spacing: 2px !important;
      color: var(--text-color) !important;
      opacity: 0.7 !important;
  }

  /* Chart Icon Styling */
  .balance-chart-icon {
    display: none;
  }

  #dashboard-page .referral-widget {
      position: absolute;
      top: 45px;
      right: 0px !important;
      z-index: 998;
      flex-direction: column;
      gap: 16px;
      padding: 8px 0px;
  }

  .secondary-action-buttons {
    display: none !important;
  }

  .action-button {
    background: #667eea !important;
    font-size: 16px !important;
    flex: 1 !important;
    border-radius: 14px !important;
    border: none;
    font-weight: 700;
    padding: 16px 24px;
    letter-spacing: 0.3px;
    height: 52px;
  }

  .action-button i {
    font-size: 15px;
  }

  .dashboard-action-buttons {
    margin: 16px auto 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .primary-action-buttons {
    gap: 12px;
    margin-bottom: 0;
  }

}








/* للموبايل */








/* Referral Copy Modal Styles - متناسق مع بقية الصفحة */
.referral-copy-modal {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.referral-copy-modal.show {
  opacity: 1;
}

.referral-copy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
}

.referral-copy-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px !important;
  margin: 0 16px 0;
  box-shadow: none;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

.referral-copy-modal.show .referral-copy-content {
  transform: translateY(0);
}

#referral-copy-modal .referral-copy-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}



.referral-copy-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.close-referral-copy {
  background: none;
  border: none;
  font-size: 20px;
  color: #718096;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-referral-copy:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a202c;
}

.referral-copy-options {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.referral-copy-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: none;
  box-shadow: none;
}

.referral-copy-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.referral-copy-option:hover::before {
  left: 100%;
}

.referral-copy-option:hover {
  background: rgba(255, 255, 255, 1);
  transform: none;
  box-shadow: none;
}

.referral-copy-option:active {
  transform: translateY(0);
}

.copy-option-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.copy-option-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.copy-option-content h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
}

.copy-option-content p {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
   color: #718096;
  line-height: 1.4;
}

.referral-code-preview,
.referral-link-preview {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.referral-link-preview {
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .referral-link-preview {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.copy-option-action {
  width: 40px;
  height: 40px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.referral-copy-option:hover .copy-option-action {
  background: #667eea;
  color: white;
  transform: none;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .referral-copy-modal {
    align-items: center;
    justify-content: center;
  }

  .referral-copy-content {
    border-radius: 24px;
    margin: 20px;
    max-width: 480px;
    transform: none;
    opacity: 0;
  }

  .referral-copy-modal.show .referral-copy-content {
    transform: none;
    opacity: 1;
  }
}

/* Dark theme adjustments - متناسق مع الوضع الليلي */
.dark-theme .referral-copy-content {
  background: rgba(42, 42, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme #referral-copy-modal .referral-copy-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .referral-copy-header h3 {
  color: #ffffff;
}

.dark-theme .close-referral-copy {
  color: #a0aec0;
}

.dark-theme .close-referral-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dark-theme .referral-copy-option {
  background: var(--card-background);
  border: none;
  box-shadow: none;
}

.dark-theme .referral-copy-option:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.dark-theme .copy-option-content h4 {
  color: #ffffff;
}

.dark-theme .copy-option-content p {
  color: #a0aec0;
}

.dark-theme .referral-code-preview,
.dark-theme .referral-link-preview {
  background: rgba(107, 165, 231, 0.15);
  color: #6ba5e7;
}

.dark-theme .copy-option-action {
  background: rgba(107, 165, 231, 0.15);
  color: #6ba5e7;
}

.dark-theme .referral-copy-option:hover .copy-option-action {
  background: #6ba5e7;
  color: white;
}






/* Arabic model */



html[lang="ar"] #community-page .transaction-header {
 display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 15px;

}

html[lang="ar"] #community-page .transaction-header h3 {
 align-self: flex-end !important;
  text-align: right !important;

}





 



@media (max-width: 768px) {
html[lang="ar"] .wallet-header h3 {
  align-self: flex-end !important;
  text-align: right !important;
 }

  html[lang="ar"] #community-page .explorer-header h3 {
    align-self: center !important;
    text-align: right !important;

  }

  html[lang="ar"] #community-page .view-all {
    align-self: flex-end !important;
    text-align: right !important;
    font-size: 18px !important;

  }

}

@media (max-width: 768px) {
/* Modern Balance Display */
.center-balance-display {
  display: flex;
  position: relative;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  margin-bottom: 16px;
  top: 0;
  width: 100%;
  margin-left: 3px;
}

.balance-showcase {
  border-radius: 0;
  display: flex;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 0;
  width: 100%;
  backdrop-filter: none;
  user-select: none;
}




.balance-label {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.balance-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-start !important;
  gap: 6px;
  flex-direction: row;
  position: relative;
  width: 100%;
}

.balance-amount-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  justify-content: flex-start !important;
  flex-direction: row;
}

.balance-value #user-coins {
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 0;
  text-align: left;
}
}

.balance-currency-unit {
  font-size: clamp(11px, 2vw, 14px);
  color: #9ca3af;
  font-weight: 500;
  margin-left: 6px;
  position: relative;
  top: 0;
}

.balance-hidden {
    font-family: monospace !important;
    letter-spacing: 2px !important;
    color: var(--text-color) !important;
    opacity: 0.7 !important;
  }

  /* Chart Icon Styling */
  #dashboard-page .wallet-icon {
    display: inline-flex;
    font-size: 12px;
    color: #6366f1 !important;
    opacity: 1;
  }

#dashboard-page .wallet-icon:hover {
    opacity: 0.8;
  }

  /* Dark Theme Support */
  

  .dark-theme .balance-label {
    color: #818cf8;
  }

  .dark-theme .balance-value #user-coins {
    color: #ffffff;
  }

  .dark-theme .balance-currency-unit {
    color: #a0aec0;
  }

  .dark-theme .balance-privacy-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .dark-theme .balance-privacy-toggle:active {
    background: rgba(255, 255, 255, 0.15) !important;
  }

  .dark-theme .balance-privacy-toggle .fas,
  .dark-theme .balance-privacy-toggle .far {
    color: #6ba5e7 !important;
  }

  .dark-theme .balance-privacy-toggle:hover .fas,
  .dark-theme .balance-privacy-toggle:hover .far {
    color: #ffffff !important;
  }

  #dashboard-page .dark-theme .wallet-icon polyline {
   stroke: #6ba5e7;
  }


  .balance-logo-container {
    display: none;
  }
  .balance-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 2px;
    flex-grow: 1;
    text-align: left !important;
    width: 100%;
  }

  .balance-label-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }

  .balance-label-container .balance-label {
    text-align: left;
  }

  .balance-label-container .balance-privacy-toggle {
    padding: 0;
    background: none;
    border: none;
    font-size: 12px;
    color: inherit;
    opacity: 0.5;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }


/* ============================================= */
/* RTL Support for Arabic - Dashboard Timer */
/* ============================================= */
/* Dashboard Boost Button - Mobile Only */
.dashboard-boost-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  font-family: 'Poppins', 'Inter', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  box-shadow: none;
  transition: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.dark-theme .dashboard-boost-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.dashboard-boost-btn i {
  font-size: 12px;
}

.dashboard-boost-btn:hover {
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-boost-btn:active,
.dashboard-boost-btn:focus {
  opacity: 0.85;
  outline: none;
  box-shadow: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-timer-header-right {
  display: none;
}

.timer-access-logo {
  display: none;
}

.timer-triangle-pulse {
  display: none;
}

@media (max-width: 768px) {
  .dashboard-timer-header-right {
    display: none;
  }

  .timer-access-logo {
    display: none !important;
  }

  .timer-triangle-pulse {
    display: block;
    position: absolute;
    right: -16px;
    top: 50%;
    margin-top: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    z-index: 5;
    pointer-events: none;
    box-shadow: none;
    animation: trianglePulse 2s ease-in-out infinite;
  }

  .timer-triangle-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: trianglePulseRing 2s ease-in-out infinite;
  }
}

@keyframes trianglePulse {
  0%, 100% { transform: none; opacity: 1; }
  50% { transform: none; opacity: 0.8; }
}

@keyframes trianglePulseRing {
  0% { transform: none; opacity: 0.6; }
  100% { transform: none; opacity: 0; }
}

.timer-triangle-pulse.pulse-inactive {
  background: #ef4444 !important;
  box-shadow: none;
}

.timer-triangle-pulse.pulse-inactive::after {
  background: rgba(239, 68, 68, 0.3) !important;
}

@media (max-width: 768px) {
  /* boost styles handled in base */
}

/* Session XP Earned - Below Countdown */
/* wrapper: عداد + تجميع */
.countdown-earned-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* صف العداد + الساعة */
.countdown-clock-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-session-earned {
  display: none;
}

@media (max-width: 768px) {
  .dashboard-session-earned {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Inter', -apple-system, sans-serif;
    z-index: 20;
    white-space: nowrap;
  }

  .session-earned-value {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  .session-earned-label {
    font-size: 9px;
    font-weight: 600;
    color: #10b981;
    opacity: 0.6;
    line-height: 1;
  }

  .dark-theme .session-earned-value {
    color: #34d399;
  }

  .dark-theme .session-earned-label {
    color: #34d399;
  }

  .countdown-earned-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dashboard-session-earned {
    justify-content: center;
  }

  .countdown-with-label {
    justify-content: flex-end;
  }

  .dashboard-countdown {
    text-align: right !important;
    margin-right: 0;
  }

  .countdown-with-label .dashboard-timer-title {
    right: auto;
    left: calc(50% + 30px);
  }

  .dashboard-timer-display {
    align-items: flex-end !important;
  }

  .timer-bottom-row {
    justify-content: flex-end;
  }

  .timer-bottom-center {
    justify-content: flex-end;
  }
}

html[dir="rtl"] .dashboard-timer-header,
html[lang="ar"] .dashboard-timer-header {
  flex-direction: row;
}

/* === شاشات صغيرة (هواتف صغيرة) === */
@media (max-width: 380px) {
  .dashboard-countdown {
    font-size: 26px;
  }

  .dashboard-timer-title {
    font-size: 9px;
  }

  .dashboard-timer-status {
    font-size: 10px;
  }

  .dashboard-boost-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .dashboard-boost-btn i {
    font-size: 11px;
  }

  #dashboard-hashrate-display {
    font-size: 10px;
    padding: 3px 6px;
  }

  .action-button {
    padding: 12px 10px !important;
    font-size: 12px !important;
    min-width: 45% !important;
    border-radius: 12px !important;
  }

  .primary-action-buttons {
    gap: 8px !important;
    margin-bottom: 0 !important;
  }

  .balance-value #user-coins {
    font-size: 24px;
  }

  .balance-label {
    font-size: 10px;
  }

  .session-earned-value {
    font-size: 13px;
  }

  .session-earned-label {
    font-size: 9px;
  }

  /* Dashboard Header - Avatar, Username, Action Icons */
  #dashboard-page .dashboard-header {
    padding: 8px 10px !important;
  }

  #dashboard-page .dashboard-user-avatar {
    width: 40px !important;
    height: 40px !important;
  }

  #dashboard-page .dashboard-user-section {
    gap: 8px !important;
  }

  #dashboard-page .dashboard-user-name {
    font-size: 14px !important;
  }

  #dashboard-page .dashboard-action-icons {
    gap: 8px !important;
  }

  #dashboard-page .action-icon {
    width: 36px !important;
    height: 36px !important;
  }

  #dashboard-page .language-icon {
    width: 36px !important;
    height: 36px !important;
  }

  #dashboard-page .action-icon i {
    font-size: 14px !important;
  }

  .language-code {
    font-size: 8px !important;
    padding: 1px 4px !important;
  }

  /* Access Chain Dropdown Content */
  .network-dropdown {
    padding: 14px !important;
    min-width: 260px !important;
    border-radius: 12px !important;
  }

  .account-address-label {
    font-size: 12px !important;
  }

  .account-address-display {
    padding: 8px 10px !important;
    font-size: 11px !important;
    min-height: 38px !important;
  }

  .account-copy-btn {
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 12px !important;
  }

  .account-view-link {
    font-size: 11px !important;
  }

  .connect-wallet-btn {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }

  /* Start & Referrals Buttons */
  .action-button {
    padding: 10px 8px !important;
    font-size: 12px !important;
    height: 44px !important;
  }

  .action-button i {
    font-size: 12px !important;
  }

  /* Countdown Timer */
  .dashboard-countdown {
    font-size: 24px !important;
  }

  .dashboard-timer-title {
    font-size: 9px !important;
  }

  .dashboard-timer-status {
    font-size: 9px !important;
  }

  /* Friends / Invite Widget */
  #dashboard-page .referral-widget {
    top: -4px !important;
  }

  #dashboard-page .referral-icon-container,
  #dashboard-page .invite-icon-container {
    width: 54px !important;
    height: 54px !important;
  }

  #dashboard-page .referral-emoji {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 4px !important;
  }

  #dashboard-page .referral-count-text {
    font-size: 9px !important;
  }

  #dashboard-page .invite-icon-container i {
    font-size: 21px !important;
  }

  #dashboard-page .referral-label-text,
  #dashboard-page .invite-label-text {
    font-size: 7px !important;
  }

  /* Social Media Section */
  .dashboard-social-header h4 {
    font-size: 14px !important;
  }

  .dashboard-social-header p {
    font-size: 11px !important;
  }

  .dashboard-social-btn {
    font-size: 12px !important;
  }
}

/* === شاشات صغيرة جداً === */
@media (max-width: 340px) {
  .dashboard-countdown {
    font-size: 22px;
  }

  .action-button {
    padding: 10px 8px !important;
    font-size: 11px !important;
    gap: 5px !important;
  }

  .dashboard-boost-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }

  #dashboard-hashrate-display {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }

  .balance-value #user-coins {
    font-size: 20px !important;
  }
}

/* Global: balance chart icon styling */
.balance-chart-icon {
  color: #6366f1 !important;
  opacity: 1;
}
#dashboard-page .wallet-icon {
  font-size: 12px;
  color: #6366f1 !important;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   Halving Milestones Card
   ═══════════════════════════════════════════════════════════════ */

.dashboard-halving-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.halving-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.halving-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.halving-gem-icon {
  width: 20px;
  height: 20px;
}

.halving-title-row h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.halving-current-badge {
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* Milestones Track */
.halving-milestones-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-bottom: 16px;
}

.halving-track-line {
  position: absolute;
  top: 27px;
  left: 20px;
  right: 20px;
  height: 2.5px;
  background: var(--border-color, #e5e7eb);
  border-radius: 2px;
  z-index: 0;
}

.halving-track-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Milestone */
.halving-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.milestone-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 34px;
}

.milestone-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #b0b0b0;
  background: var(--card-background);
  border: 2px solid var(--border-color, #e5e7eb);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.milestone-reward-val {
  line-height: 1;
}

.milestone-glow {
  display: none;
}

.milestone-now-tag {
  display: none;
}

.milestone-label {
  margin-top: 5px;
  text-align: center;
}

.milestone-supply {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-light, #9ca3af);
  white-space: nowrap;
}

/* ── Active Milestone ── */
.halving-milestone.active .milestone-circle {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 2px 8px rgba(99, 102, 241, 0.35);
  animation: halvingNodeBreath 3s ease-in-out infinite;
}

@keyframes halvingNodeBreath {
  0%, 100% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 2px 8px rgba(99, 102, 241, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.12), 0 2px 12px rgba(99, 102, 241, 0.45); }
}

.halving-milestone.active .milestone-glow {
  display: none;
}

.halving-milestone.active .milestone-now-tag {
  display: block;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  white-space: nowrap;
  z-index: 3;
  line-height: 1.4;
}

.halving-milestone.active .milestone-supply {
  color: #6366f1;
  font-weight: 700;
}

/* ── Completed Milestone ── */
.halving-milestone.completed .milestone-circle {
  background: linear-gradient(135deg, #10b981, #34d399);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.2);
}

.halving-milestone.completed .milestone-supply {
  color: #10b981;
}

/* Supply Progress Bar */
.halving-supply-bar {
  background: rgba(99, 102, 241, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
}

.halving-supply-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.halving-supply-label {
  font-size: 10px;
  color: var(--text-light, #9ca3af);
  font-weight: 500;
}

.halving-supply-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-color);
}

.halving-progress-outer {
  width: 100%;
  height: 5px;
  background: var(--border-color, #e5e7eb);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}

.halving-progress-inner {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #a78bfa, #c4b5fd);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.halving-progress-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: halvingShimmer 2s ease-in-out infinite;
}

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

.halving-next-row {
  margin-bottom: 0;
}

.halving-next-label {
  font-size: 9px;
  color: var(--text-light, #9ca3af);
  font-weight: 500;
}

.halving-next-value {
  font-size: 10px;
  font-weight: 700;
  color: #6366f1;
}

/* Dark Theme */
.dark-theme .dashboard-halving-card {
  background: var(--card-background);
}

.dark-theme .halving-supply-bar {
  background: rgba(99, 102, 241, 0.1);
}

.dark-theme .halving-track-line {
  background: #3f3f46;
}

.dark-theme .milestone-circle {
  background: var(--card-background);
  border-color: #3f3f46;
  color: #71717a;
}

.dark-theme .halving-progress-outer {
  background: #3f3f46;
}

/* RTL Support */
html[lang="ar"] .halving-card-header,
html[dir="rtl"] .halving-card-header,
[data-lang="ar"] .halving-card-header {
  flex-direction: row-reverse;
}

html[lang="ar"] .halving-title-row,
html[dir="rtl"] .halving-title-row,
[data-lang="ar"] .halving-title-row {
  flex-direction: row-reverse;
}

html[lang="ar"] .halving-milestones-track,
html[dir="rtl"] .halving-milestones-track,
[data-lang="ar"] .halving-milestones-track {
  flex-direction: row-reverse;
}

html[lang="ar"] .halving-track-fill,
html[dir="rtl"] .halving-track-fill,
[data-lang="ar"] .halving-track-fill {
  margin-left: auto;
  margin-right: 0;
}

html[lang="ar"] .halving-supply-row,
html[dir="rtl"] .halving-supply-row,
[data-lang="ar"] .halving-supply-row {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 360px) {
  .milestone-circle {
    width: 26px;
    height: 26px;
    font-size: 7px;
  }
  .milestone-supply {
    font-size: 7px;
  }
  .halving-milestone.active .milestone-now-tag {
    font-size: 6px;
    padding: 1px 5px;
    top: -14px;
  }
}
