* {
  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);
}

body {
    background-color: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

/* DEGX Branded Header Styles */
.dashboard-header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--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: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -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;
}

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

.nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
}

.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: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    color: #ffffff;
  border: 1px solid transparent;
}

.user-info:hover {
  /* background: rgba(255, 255, 255, 0.08); */
  border-color: var(--border);
  transform: translateY(-1px);
}

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

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

.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);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 0;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  margin-top: 12px;
  backdrop-filter: blur(20px);
  animation: slideIn 0.3s ease-out;
}

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

.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;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

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

.dropdown-item:hover i {
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--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(--border);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2001;
}

.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(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-header h2 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    color: #ffffff;
  font-size: 20px;
  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(--surface);
  transform: rotate(90deg);
}

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

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

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

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

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

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

.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

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

.back-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
}

.top-header h2 {
  font-size: 20px;
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

.scan-icon {
  font-size: 20px;
  color: var(--text-secondary);
  padding: 8px;
  cursor: pointer;
}

.scan-icon:hover {
  color: var(--primary);
}

.asset-summary {
    background-color: #000000;
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    box-shadow: var(--shadow);
}

.total-assets p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.total-assets h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 4px 0;
}

.total-assets h1 span {
  font-size: 16px;
  font-weight: normal;
  color: var(--text-secondary);
}

.total-assets small {
  color: var(--text-secondary);
  font-size: 13px;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  gap: 8px;
}

.action-btn {
    background-color: #000000;
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 1px solid #222222;
}

.action-btn i {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--primary);
}

.accounts {
    background-color: #000000;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 8px 16px;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  position: relative;
}

.tab.active {
  color: var(--primary);
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* Wallet Section Styles */
.wallet-section {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.wallet-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 1px solid #161414;
    background-color: black;
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-info i {
  font-size: 20px;
  color: var(--primary);
  width: 36px;
  height: 36px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.wallet-balance {
  color: var(--text-secondary);
  font-size: 14px;
}

.wallet-header i.fa-chevron-right {
  color: var(--text-secondary);
}

/* Asset View */
.asset-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.asset-list-header p {
  font-size: 16px;
  font-weight: 600;
}

.hide-zero {
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
}

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

.asset-item {
    display: flex;
    align-items: center;
    background: #000000;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #222222;
}

.asset-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
}

.asset-icon i {
  font-size: 18px;
  color: var(--primary);
}

.asset-icon img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}

.asset-details {
  flex: 1;
}

.asset-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.asset-symbol {
  color: var(--text-secondary);
  font-size: 12px;
}

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

.asset-quantity {
    font-size: 16px;
    font-weight: 600;
    color: #eee;
}

.asset-value {
  color: var(--text-secondary);
  font-size: 12px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow);
}

.bottom-nav button {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  width: 100%;
}

.bottom-nav button i {
  font-size: 18px;
  margin-bottom: 4px;
}

.bottom-nav .active-tab {
  color: var(--primary);
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.modal-content {
    background-color: #000000;
    margin: 10% auto;
    padding: 20px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

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

.modal-close:hover {
  color: var(--text-primary);
}

.modal h3 {
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
   background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* display: flex; */
    color: #ffffff;
}

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

.withdraw-option {
    background-color: #000000;
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid var(--border);
    border: 1px solid #222222;

}

.withdraw-option:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

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

.withdraw-option h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.withdraw-option p {
  color: var(--text-secondary);
  font-size: 13px;
}


/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222222;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.mobile-menu-btn:hover {
    background: #006ba1;
    color: #ffffff;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-main {
        padding: 0 20px;
        height: 70px;
    }

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

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .user-name {
        display: none;
    }

    .profile-dropdown-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 90%;
        max-width: 300px;
    }
}