* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --primary: #006ba1;
  --primary-light: rgba(0, 107, 161, 0.1);
  --secondary: #f0b90b;
  --accent: #00c6ff;
  --dark-bg: #0a0a0a;
  --card-bg: #111111;
  --surface: #1a1a1a;
  --border: #222222;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --success: #00d68f;
  --warning: #ffaa00;
  --danger: #ff3d71;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  
  /* DEGX Branded Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 107, 161, 0.1) 0%, rgba(240, 185, 11, 0.05) 100%);
  
  /* Effects */
  --glow-primary: 0 0 30px rgba(0, 107, 161, 0.3);
  --glow-secondary: 0 0 30px rgba(240, 185, 11, 0.3);
  --glow-mixed: 0 0 30px rgba(0, 107, 161, 0.3), 0 0 30px rgba(240, 185, 11, 0.2);
  
  /* Cards */
  --card-bg: rgba(0, 0, 0, 0.8);
  --card-border: rgba(240, 185, 11, 0.1);
}

body {
    background-color: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: var(--dark-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 107, 161, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(240, 185, 11, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(0, 107, 161, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* DEGX Branded Header Styles */
.dashboard-header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
  left: 0;
  opacity: 0.15;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.nav-item.active {
  background: rgba(240, 185, 11, 0.05);
  box-shadow: 0 0 20px rgba(0, 107, 161, 0.2);
  border: 1px solid rgba(240, 185, 11, 0.1);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.user-menu {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.user-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.4s ease;
}

.user-info:hover::before {
  left: 0;
  opacity: 0.1;
}

.user-info:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(240, 185, 11, 0.2);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: var(--gradient-primary);
  padding: 2px;
  transition: transform 0.3s ease;
}

.user-info:hover .user-avatar {
  transform: scale(1.05);
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.profile-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 12px 0;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  margin-top: 12px;
  animation: slideDown 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

.dropdown-item:hover {
  background: var(--gradient-card);
  padding-left: 30px;
}

.dropdown-item i {
  width: 18px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.dropdown-item:hover i {
  color: var(--secondary);
  transform: scale(1.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--card-border);
  margin: 12px 0;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-content {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  background: #000000;
  border-right: 1px solid var(--card-border);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2001;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-header h2 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 700;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: var(--gradient-card);
  transform: rotate(90deg);
}

.mobile-nav {
  padding: 24px 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-weight: 600;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: var(--gradient-card);
  color: var(--secondary);
  border-left-color: var(--secondary);
  transform: translateX(4px);
}

.mobile-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.mobile-menu-btn {
  display: none;
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-right: 15px;
}

.mobile-menu-btn:hover {
  background: var(--gradient-primary);
  color: var(--text-primary);
  transform: scale(1.05);
  box-shadow: var(--glow-mixed);
}

/* Container Styles */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out;
}

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

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  margin-bottom: 20px;
}

.back-btn {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 18px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateX(-5px);
  box-shadow: var(--glow-mixed);
  color: white;
}

.top-header h2 {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); text-shadow: 0 0 20px rgba(240, 185, 11, 0.3); }
}

.header-actions {
  display: flex;
  gap: 12px;
}

.scan-icon, .history-icon {
  font-size: 18px;
  color: var(--text-primary);
  padding: 12px;
  cursor: pointer;
  border-radius: 16px;
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.scan-icon:hover, .history-icon:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px) rotate(15deg);
  box-shadow: var(--glow-mixed);
  color: white;
}

/* Wallet Summary */
.wallet-summary {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 28px;
  margin: 20px 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: cardFloat 6s ease-in-out infinite;
}

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

.wallet-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.wallet-summary:hover::before {
  transform: scaleX(1);
}

.wallet-summary::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.wallet-summary:hover::after {
  opacity: 0.5;
}

.total-equity h3 {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.total-equity h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 10px 0;
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.total-equity h1 span {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.total-equity small {
  color: var(--text-tertiary);
  font-size: 14px;
}

.pnl {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.pnl p {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.pnl span {
  font-weight: 600;
  font-size: 16px;
}

.pnl .positive {
  color: var(--success);
  text-shadow: 0 0 20px rgba(0, 214, 143, 0.3);
}

.pnl .negative {
  color: var(--danger);
  text-shadow: 0 0 20px rgba(255, 61, 113, 0.3);
}

/* Quick Actions */
.quick-actions {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 24px;
  margin: 20px 0;
  transition: all 0.4s ease;
}

.quick-actions:hover {
  box-shadow: 0 20px 40px rgba(0, 107, 161, 0.2);
  border-color: var(--secondary);
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
}

.action-btn {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 20px 12px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: none;
  font-size: 14px;
  font-weight: 600;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 0;
}

.action-btn:hover::before {
  left: 0;
  opacity: 1;
}

.action-btn:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: transparent;
  box-shadow: var(--glow-mixed);
}

.action-btn i,
.action-btn span {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.action-btn i {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 0;
}

.action-btn:hover i {
  color: white;
  transform: rotate(360deg) scale(1.1);
}

.action-btn span {
  color: var(--text-secondary);
}

.action-btn:hover span {
  color: white;
}

/* Assets Section */
.assets-section {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 28px;
  margin: 20px 0 80px;
  transition: all 0.4s ease;
}

.assets-section:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 107, 161, 0.2);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.hide-zero {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 16px;
  background: var(--gradient-card);
  border-radius: 40px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hide-zero:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--glow-mixed);
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--gradient-card);
  border-radius: 20px;
  border: 1px solid #222222;
  transition: all 0.4s ease;
  animation: slideInItem 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes slideInItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.asset-item:hover {
  background: rgba(0, 107, 161, 0.1);
  border-color: var(--secondary);
  transform: translateX(5px) scale(1.01);
  box-shadow: 0 5px 20px rgba(240, 185, 11, 0.2);
}

.asset-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.asset-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-icon img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  transition: all 0.3s ease;
}

.asset-item:hover .asset-icon img {
  transform: scale(1.1);
}

.asset-details h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.asset-details p {
  color: var(--text-tertiary);
  font-size: 13px;
}

.asset-amount {
  text-align: right;
}

.asset-amount strong {
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  color: #eee;
}

.asset-amount small {
  color: var(--text-tertiary);
  font-size: 13px;
}

.no-assets {
  text-align: center;
  padding: 40px;
  color: var(--text-tertiary);
  font-size: 16px;
  background: var(--gradient-card);
  border-radius: 20px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  justify-content: space-around;
  padding: 16px 0;
  border-top: 1px solid var(--card-border);
  z-index: 100;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.bottom-nav button {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 40px;
  width: 100%;
}

.bottom-nav button i {
  font-size: 20px;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.bottom-nav button:hover {
  color: var(--secondary);
  background: rgba(240, 185, 11, 0.1);
  transform: translateY(-2px);
}

.bottom-nav .active-tab {
  color: var(--secondary);
  background: rgba(240, 185, 11, 0.15);
  border: 1px solid rgba(240, 185, 11, 0.2);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 15% auto;
  padding: 30px;
  border-radius: 30px;
  max-width: 400px;
  width: 90%;
  position: relative;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.modal h3 {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal.success h3 {
  color: var(--success);
}

.modal.error h3 {
  color: var(--danger);
}

.withdraw-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.withdraw-option {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid #222222;
}

.withdraw-option:hover {
  background: rgba(0, 107, 161, 0.2);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.withdraw-option i {
  font-size: 24px;
  color: var(--secondary);
  margin-bottom: 0;
}

.withdraw-option h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.withdraw-option p {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 0;
}

/* Loading Animations */
.skeleton {
  background: linear-gradient(90deg, 
    rgba(0, 107, 161, 0.05) 25%, 
    rgba(240, 185, 11, 0.1) 50%, 
    rgba(0, 107, 161, 0.05) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ========== RESPONSIVE DESIGN - OPTIMIZED FOR MOBILE ========== */
@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
  
  .main-nav {
    display: flex !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Tablet and Mobile Optimization */
@media (max-width: 1024px) {
  .main-nav {
    gap: 4px;
  }
  
  .nav-item {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Mobile Styles - Main optimization */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .header-main {
    padding: 0 16px;
    height: 60px;
  }

  .main-nav {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    padding: 8px 10px;
  }

  .user-name {
    display: none;
  }
  
  .user-info {
    padding: 4px 8px 4px 4px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
  }

  .bottom-nav {
    display: flex;
    padding: 8px 0;
  }
  
  .bottom-nav button {
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .bottom-nav button i {
    font-size: 18px;
  }

  .container {
    margin: 20px auto 80px;
    padding: 0 12px;
  }

  /* Optimized Top Header for Mobile */
  .top-header {
    padding: 12px 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .top-header h2 {
    font-size: 20px;
    position: static;
    transform: none;
    margin: 0;
    order: 2;
    white-space: normal;
    text-align: center;
  }

  .back-btn {
    padding: 10px 12px;
    font-size: 16px;
    order: 1;
  }

  .header-actions {
    order: 3;
    gap: 8px;
  }
  
  .scan-icon, .history-icon {
    padding: 10px;
    font-size: 16px;
  }

  /* Wallet Summary Optimization */
  .wallet-summary {
    padding: 20px;
    border-radius: 24px;
    margin: 16px 0;
  }

  .total-equity h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .total-equity h1 {
    font-size: 32px;
    margin: 5px 0;
  }

  .total-equity h1 span {
    font-size: 16px;
  }

  .total-equity small {
    font-size: 13px;
  }

  .pnl {
    margin-top: 12px;
    padding-top: 12px;
  }

  .pnl p {
    font-size: 13px;
  }

  .pnl span {
    font-size: 14px;
  }

  /* Optimized Quick Actions */
  .quick-actions {
    padding: 16px;
    margin: 16px 0;
    border-radius: 24px;
  }

  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .action-btn {
    padding: 16px 10px;
    border-radius: 20px;
    gap: 10px;
  }

  .action-btn i {
    font-size: 24px;
  }

  .action-btn span {
    font-size: 13px;
  }

  /* Optimized Assets Section */
  .assets-section {
    padding: 20px;
    margin: 16px 0 70px;
    border-radius: 24px;
  }

  .section-header {
    margin-bottom: 16px;
  }

  .section-header h3 {
    font-size: 18px;
  }

  .hide-zero {
    padding: 6px 12px;
    font-size: 12px;
  }

  .asset-list {
    gap: 8px;
  }

  .asset-item {
    padding: 12px;
    border-radius: 18px;
  }

  .asset-info {
    gap: 12px;
  }

  .asset-icon {
    width: 40px;
    height: 40px;
  }

  .asset-icon img {
    width: 28px;
    height: 28px;
  }

  .asset-details h4 {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .asset-details p {
    font-size: 12px;
  }

  .asset-amount strong {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .asset-amount small {
    font-size: 11px;
  }

  /* Dropdown Menu on Mobile */
  .profile-dropdown-menu {
    position: fixed;
    top: 60px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    margin: 0;
  }

  /* Modal Optimization */
  .modal-content {
    margin: 30% auto;
    padding: 24px;
    border-radius: 24px;
  }

  .modal h3 {
    font-size: 20px;
  }

  .withdraw-option {
    padding: 14px;
  }

  .withdraw-option i {
    font-size: 22px;
  }

  .withdraw-option h4 {
    font-size: 15px;
  }

  .withdraw-option p {
    font-size: 12px;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  body {
    padding: 8px;
  }
  
  .header-main {
    padding: 0 12px;
    height: 56px;
  }

  .logo {
    font-size: 22px;
  }

  .mobile-menu-btn {
    padding: 6px 8px;
    font-size: 16px;
  }

  .container {
    padding: 0 8px;
    margin: 15px auto 70px;
  }

  .top-header h2 {
    font-size: 18px;
  }

  .back-btn {
    padding: 8px 10px;
    font-size: 14px;
  }

  .scan-icon, .history-icon {
    padding: 8px;
    font-size: 14px;
  }

  .wallet-summary {
    padding: 16px;
  }

  .total-equity h1 {
    font-size: 28px;
  }

  .quick-actions {
    padding: 12px;
  }

  .action-buttons {
    gap: 8px;
  }

  .action-btn {
    padding: 14px 8px;
  }

  .action-btn i {
    font-size: 22px;
  }

  .action-btn span {
    font-size: 12px;
  }

  .assets-section {
    padding: 16px;
  }

  .asset-item {
    padding: 10px;
  }

  .asset-icon {
    width: 36px;
    height: 36px;
  }

  .asset-icon img {
    width: 24px;
    height: 24px;
  }

  .asset-details h4 {
    font-size: 14px;
  }

  .asset-details p {
    font-size: 11px;
  }

  .asset-amount strong {
    font-size: 14px;
  }

  .asset-amount small {
    font-size: 10px;
  }

  .hide-zero {
    padding: 5px 10px;
    font-size: 11px;
  }

  .bottom-nav {
    padding: 6px 0;
  }

  .bottom-nav button {
    padding: 4px 6px;
    font-size: 10px;
  }

  .bottom-nav button i {
    font-size: 16px;
  }
}

/* Fix for very small devices */
@media (max-width: 360px) {
  .action-buttons {
    gap: 6px;
  }

  .action-btn {
    padding: 12px 6px;
  }

  .action-btn i {
    font-size: 20px;
  }

  .action-btn span {
    font-size: 11px;
  }

  .asset-amount strong {
    font-size: 13px;
  }

  .bottom-nav button {
    font-size: 9px;
    padding: 4px 2px;
  }

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

  .hide-zero {
    padding: 4px 8px;
    font-size: 10px;
  }
}

/* Fix for action buttons on medium mobile */
@media (min-width: 481px) and (max-width: 580px) {
  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Fix for landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .modal-content {
    margin: 10% auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .bottom-nav {
    padding: 8px 0;
  }
  
  .container {
    margin-bottom: 70px;
  }
}