@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');





/* === PREMIUM PORTFOLIO TRACKER - MOVEMENT NETWORK === */

/* --- 1. FONTS & IMPORTS --- */

/* --- 2. DESIGN SYSTEM VARIABLES - MOVECHI COLOR SCHEME --- */

:root {

  /* Background & Surfaces - Dark Charcoal Brown */

  --bg-primary: #14110f;

  --bg-secondary: #1d1916;

  --bg-tertiary: #26211d;

  --glass: rgba(205, 161, 105, 0.05);

  --glass-hover: rgba(205, 161, 105, 0.1);

  --glass-strong: rgba(205, 161, 105, 0.12);



  /* Borders - Golden Tan */

  --border-subtle: rgba(205, 161, 105, 0.2);

  --border-medium: rgba(205, 161, 105, 0.35);

  --border-strong: rgba(205, 161, 105, 0.5);



  /* Shadows - Golden Glow */

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.6);

  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.7);

  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);

  --shadow-glow: 0 0 40px rgba(205, 161, 105, 0.25);



  /* Typography */

  --text-primary: #f7f3ee;

  --text-secondary: #d6c6b3;

  --text-tertiary: #9f8d79;

  --text-muted: #9f8d79;



  /* Brand Colors - Movechi Golden Tan */

  --primary: #cda169;

  --primary-light: #deb884;

  --primary-dark: #a77b43;

  --accent: #cda169;

  --accent-light: #deb884;

  --gold: #cda169;

  --gold-dark: #a77b43;

  --success: #36c690;

  --warning: #e57c23;

  --info: #5c8ead;

  --info-light: #76a6c3;

  --error: #e06a6a;

  /* Data Viz Palette */

  --viz-asset-1: #cda169;

  --viz-asset-2: #3b958b;

  --viz-asset-3: #8c6b9e;

  --viz-asset-4: #c06c50;

  --viz-asset-5: #5c8ead;



  /* Gradients - Golden Tan */

  --gradient-primary: linear-gradient(135deg, #cda169 0%, #a77b43 100%);

  --gradient-accent: linear-gradient(135deg, #deb884 0%, #cda169 100%);

  --gradient-card: linear-gradient(145deg, rgba(205, 161, 105, 0.12), rgba(167, 123, 67, 0.06));

  --gradient-hero: linear-gradient(135deg, rgba(205, 161, 105, 0.2) 0%, rgba(167, 123, 67, 0.1) 100%);

  --gradient-gamer: linear-gradient(135deg, rgba(205, 161, 105, 0.25), rgba(138, 125, 111, 0.15));



  /* Font Families */

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-display: 'Space Grotesk', var(--font-primary);



  /* Spacing */

  --spacing-xs: 4px;

  --spacing-sm: 8px;

  --spacing-md: 16px;

  --spacing-lg: 24px;

  --spacing-xl: 32px;

  --spacing-2xl: 48px;



  /* Border Radius */

  --radius-sm: 8px;

  --radius-md: 12px;

  --radius-lg: 16px;

  --radius-xl: 20px;

  --radius-2xl: 24px;

  --radius-full: 9999px;



  /* Transitions */

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);

  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

}

:root[data-theme="light"] {

  --bg-primary: #f4f5f7;

  --bg-secondary: #ffffff;

  --glass: rgba(15, 23, 42, 0.03);

  --glass-hover: rgba(15, 23, 42, 0.06);

  --glass-strong: rgba(15, 23, 42, 0.08);

  --border-subtle: rgba(148, 163, 184, 0.3);

  --border-medium: rgba(100, 116, 139, 0.35);

  --border-strong: rgba(71, 85, 105, 0.45);

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);

  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);

  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);

  --shadow-glow: 0 0 28px rgba(100, 116, 139, 0.12);

  --text-primary: #0f172a;

  --text-secondary: #334155;

  --text-tertiary: #64748b;

  --text-muted: #94a3b8;

  --primary: #0f172a;

  --primary-light: #334155;

  --primary-dark: #020617;

  --accent: #0f172a;

  --accent-light: #334155;

  --gold: #0f172a;

  --gold-dark: #020617;

  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #334155 100%);

  --gradient-accent: linear-gradient(135deg, #334155 0%, #0f172a 100%);

  --gradient-card: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.92));

  --gradient-hero: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);

  --gradient-gamer: linear-gradient(135deg, rgba(226, 232, 240, 0.5), rgba(241, 245, 249, 0.7));

}

/* --- 3. GLOBAL STYLES --- */

* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}

body {

  font-family: var(--font-primary);

  color: var(--text-primary);

  background: var(--bg-primary);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

  overflow-x: hidden;

}

body[data-theme="light"] {

  background: var(--bg-primary);

  color: var(--text-primary);

}

body[data-theme="light"] .hero-v3,
body[data-theme="light"] .hero-card,
body[data-theme="light"] .hero-card-v2,
body[data-theme="light"] .grid-container,
body[data-theme="light"] .card,
body[data-theme="light"] .token-card-new,
body[data-theme="light"] .defi-card-v2,
body[data-theme="light"] .lp-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

body[data-theme="light"] .section-title,
body[data-theme="light"] .hero-v3-title,
body[data-theme="light"] .token-symbol,
body[data-theme="light"] .lp-card-name,
body[data-theme="light"] .defi-v2-title h3,
body[data-theme="light"] .hero-v3-stat-value,
body[data-theme="light"] .hero-v3-value {
  color: #0f172a !important;
}

body[data-theme="light"] .token-network,
body[data-theme="light"] .hero-v3-label,
body[data-theme="light"] .hero-v3-stat-label,
body[data-theme="light"] .lp-card-stat-label,
body[data-theme="light"] .defi-v2-type,
body[data-theme="light"] .defi-v2-column-label {
  color: #64748b !important;
}

body[data-theme="light"] .hero-v3-change-badge.positive,
body[data-theme="light"] .hero-v3-stat-value.positive {
  color: #15803d !important;
}

body[data-theme="light"] .hero-v3-change-badge.negative,
body[data-theme="light"] .hero-v3-stat-value.negative {
  color: #b91c1c !important;
}

/* Fintech-style PnL Row */

.hero-v3-value-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-v3-sub-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-primary);
  margin-bottom: 16px;
}

.hero-v3-sub-value.positive {
  color: #36c690;
}

.hero-v3-sub-value.negative {
  color: #e06a6a;
}

.change-arrow {
  font-size: 10px;
}

.change-usd {
  font-weight: 700;
}

.change-percent {
  font-weight: 600;
}

.change-label {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-left: 4px;
  font-weight: 400;
}

.hero-v3-bio-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  transition: all 0.2s ease;
  width: fit-content;
  opacity: 0.85;
}

.hero-v3-bio-nudge:hover {
  color: var(--primary-light);
  opacity: 1;
}

.hero-v3-bio.empty-guest {
  color: var(--text-tertiary);
  font-style: italic;
  opacity: 0.7;
}

.bio-nudge-icon {
  opacity: 0.8;
  margin-top: -1px;
}

/* --- 4. LAYOUT CONTAINER --- */

.app-container {

  max-width: 1600px;

  margin: 0 auto;

  padding: var(--spacing-xl) var(--spacing-2xl);

  min-height: 100vh;

}

/* --- 5. NAVBAR --- */

/* Navbar styles moved to Layout.css */

.nav-left {

  display: flex;

  align-items: center;

  gap: var(--spacing-2xl);

  flex: 1;

}

.logo-container {

  display: flex;

  align-items: center;

  gap: var(--spacing-md);

}

.logo-img {

  height: 56px;

  width: auto;

  object-fit: contain;

}

.nav-links {

  display: flex;

  list-style: none;

  gap: var(--spacing-xl);

  font-size: 14px;

  font-weight: 600;

  letter-spacing: 0.5px;

}

.nav-links li {

  cursor: pointer;

  color: var(--text-tertiary);

  transition: color var(--transition-base);

  position: relative;

  padding: var(--spacing-sm) 0;

}

.nav-links li::after {

  content: '';

  position: absolute;

  bottom: 0;

  left: 0;

  width: 0;

  height: 2px;

  background: var(--gradient-primary);

  transition: width var(--transition-base);

}

.nav-links li.active::after {

  width: 100%;

}

.nav-links li:hover {

  color: var(--text-secondary);

}

.nav-links li.active {

  color: var(--text-primary);

  font-weight: 700;

}

.nav-links li:hover::after,

.nav-links li.active::after {

  width: 100%;

}

.nav-right {

  display: flex;

  align-items: center;

  gap: var(--spacing-md);

}

/* --- 6. NETWORK BADGE --- */

/* --- 7. SEARCH BAR (styles moved to Layout.css) --- */

/* --- 8. CONNECT WALLET BUTTON --- */

.connect-btn {

  padding: 12px 28px;

  border: 2px solid var(--primary);

  border-radius: var(--radius-full);

  background: linear-gradient(135deg, rgba(205, 161, 105, 0.2) 0%, rgba(167, 123, 67, 0.1) 100%);

  color: var(--text-primary);

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.5px;

  cursor: pointer;

  transition: all var(--transition-base);

  box-shadow: 0 0 20px rgba(205, 161, 105, 0.25), inset 0 0 20px rgba(205, 161, 105, 0.08);

  white-space: nowrap;

  text-transform: uppercase;

  font-family: var(--font-display);

}

.connect-btn:hover {

  transform: translateY(-2px);

  box-shadow: 0 0 30px rgba(205, 161, 105, 0.5), inset 0 0 20px rgba(205, 161, 105, 0.15), 0 12px 32px rgba(205, 161, 105, 0.3);

  border-color: var(--primary-light);

}

.connect-btn:active {

  transform: translateY(0);

}

.connect-btn.connected {

  background: transparent;

  border: 1.5px solid var(--primary);

  color: var(--primary);

  box-shadow: none;

}

.connect-btn.connected:hover {

  background: rgba(212, 175, 55, 0.1);

  border-color: var(--primary-light);

  color: var(--primary-light);

}

/* Wallet Dropdown */

.wallet-dropdown-container {
  position: relative;
}

.wallet-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  background:
    radial-gradient(circle at 80% -10%, rgba(205, 161, 105, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(31, 27, 24, 0.98) 0%, rgba(24, 21, 19, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(115%);
  border: 1px solid rgba(205, 161, 105, 0.3);
  border-radius: 14px;
  min-width: 240px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(205, 161, 105, 0.07) inset;
  z-index: 10001;
  padding: 0;
  overflow: hidden;
  animation: layoutFadeIn 0.18s ease;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(205, 161, 105, 0.15);
  color: #cda169;
}

.dropdown-item.disconnect {
  color: #e06a6a;
}

.dropdown-item.disconnect:hover {
  background: rgba(212, 116, 116, 0.15);
  color: #e06a6a;
}

.dropdown-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(205, 161, 105, 0.12);
  margin: 0;
}

/* Wallet Picker */

.wallet-picker {

  position: relative;

}

.wallet-picker-panel {

  position: absolute;

  right: 0;

  top: calc(100% + 12px);

  background: var(--bg-secondary);

  border: 1px solid var(--border-medium);

  border-radius: var(--radius-lg);

  min-width: 260px;

  box-shadow: var(--shadow-lg);

  backdrop-filter: blur(40px);

  z-index: 100;

  padding: var(--spacing-sm);

  animation: slideDown 0.2s ease;

}

@keyframes slideDown {

  from {

    opacity: 0;

    transform: translateY(-8px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}

.wallet-option {

  width: 100%;

  text-align: left;

  padding: 12px 16px;

  background: var(--glass);

  border: 1px solid transparent;

  border-radius: var(--radius-md);

  color: var(--text-primary);

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  margin-bottom: var(--spacing-sm);

  transition: all var(--transition-base);

}

.wallet-option:hover {

  background: var(--glass-hover);

  border-color: var(--primary);

  box-shadow: 0 0 12px rgba(205, 161, 105, 0.2);

  transform: translateX(4px);

}

.wallet-option.disabled {

  cursor: not-allowed;

  opacity: 0.5;

}

.wallet-option.disabled:hover {

  transform: none;

  border-color: transparent;

}

.wallet-option.link {

  text-decoration: none;

  display: block;

  color: var(--text-secondary);

}

.wallet-divider {

  font-size: 11px;

  font-weight: 700;

  color: var(--text-tertiary);

  margin: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);

  text-transform: uppercase;

  letter-spacing: 1px;

}

/* --- Professional Wallet Connection Modal --- */

.wallet-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
  padding: 1rem;
}

.wallet-modal {
  background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(205, 161, 105, 0.15);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.75rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.wallet-modal-title {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.wallet-modal-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 14px;
  flex-shrink: 0;
}

.wallet-modal-title h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.wallet-modal-title p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.wallet-modal-close {
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-modal-close:hover {
  background: var(--glass-hover);
  border-color: var(--primary);
  color: var(--text-primary);
}

.wallet-modal-content {
  padding: 1.5rem 1.75rem;
}

.wallet-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.wallet-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.wallet-option-card:hover {
  background: var(--glass-hover);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(205, 161, 105, 0.2);
}

.wallet-option-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-strong);
  border-radius: 14px;
  margin-bottom: 0.25rem;
}

.wallet-option-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.wallet-option-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--success);
  color: var(--bg-primary);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-no-wallets {
  text-align: center;
  padding: 2rem;
  color: var(--text-tertiary);
}

.no-wallet-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.wallet-modal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.wallet-modal-divider::before,
.wallet-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.wallet-modal-divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.wallet-install-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wallet-install-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wallet-install-link:hover {
  background: var(--glass);
  border-color: var(--border-medium);
}

.install-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 10px;
  flex-shrink: 0;
}

.install-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.install-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.install-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}

.install-arrow {
  color: var(--text-tertiary);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.wallet-install-link:hover .install-arrow {
  transform: translate(3px, -3px);
  color: var(--primary);
}

.wallet-modal-footer {
  padding: 1rem 1.75rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.wallet-modal-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Connected wallet button enhancement */

.connect-btn.connected {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ========================================
   Hero V3 - Reference Design Style
   ======================================== */

.hero-v3 {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  width: 100%;
  background: linear-gradient(165deg, rgba(20, 18, 16, 0.98), rgba(12, 10, 8, 0.99));
  border-radius: 20px;
  padding: 14px 0 14px 28px;
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-v3 {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }

  .hero-v3-left {
    padding-right: 0;
    padding-bottom: 20px;
    width: 100%;
    align-items: center;
  }

  .hero-v3-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0 0 0;
    width: 100%;
    max-width: 100%;
    flex: auto;
    min-height: 180px;
  }

  .hero-profile-section {
    order: -1;
    padding-top: 0;
    margin-bottom: 20px;
  }
}

.hero-v3-left {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 36px;
  flex: 1;
  min-width: 0;
  padding-right: 28px;
}

.hero-v3-right {
  display: flex;
  flex-direction: column;
  flex: 0 0 35%;
  max-width: 35%;
  min-width: 0;
  width: 100%;
  align-items: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 24px 8px 24px;
}

.hero-v3-main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  position: relative;
  padding-top: 0;
}

.hero-v3-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
}

.hero-v3-left-actions {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.hero-v3-actions-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.hero-action-btn-v4 {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.38);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-action-btn-v4:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
}

.hero-action-btn-v4:active {
  transform: scale(0.92);
}

.hero-action-btn-v4.spin svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Hero Profile Section */

.hero-profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding: 0;
}

.hero-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto;
}

.hero-profile-avatar {
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.hero-avatar-image,
.hero-avatar-placeholder {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 2px solid rgba(205, 161, 105, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-avatar-image:hover,
.hero-avatar-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(205, 161, 105, 0.6);
}

.hero-profile-avatar.non-interactive {
  cursor: default !important;
}

.hero-profile-avatar.non-interactive .hero-avatar-image:hover {
  box-shadow: 0 8px 24px rgba(205, 161, 105, 0.3);
  border-color: rgba(205, 161, 105, 0.4);
}

.hero-avatar-image {
  object-fit: cover;
}

.hero-avatar-placeholder {
  background: linear-gradient(135deg, #cda169 0%, #a77b43 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  color: #14110f;
}

/* Level Badge on Hero Avatar */

.hero-level-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #cda169 0%, #deb884 100%);
  border: 2px solid #14110f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #14110f;
  box-shadow: 0 4px 12px rgba(205, 161, 105, 0.4);
}

@keyframes levelPulseHero {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(205, 161, 105, 0.4), 0 0 24px rgba(205, 161, 105, 0.3);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(205, 161, 105, 0.5), 0 0 32px rgba(205, 161, 105, 0.4);
  }
}

.hero-profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hero-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #cda169;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-profile-badge-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #5c8ead;
  border-radius: 50%;
  border: 3px solid rgba(37, 34, 32, 0.9);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.badge-check-blue {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.hero-profile-bio {
  font-size: 14px;
  color: #c9b5a1;
  line-height: 1.5;
  margin: 4px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-profile-socials-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 16px;
  background: rgba(18, 16, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  margin-top: 14px;
  width: fit-content;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #9ca3af;
  padding: 2px;
  position: relative;
}

.hero-social-link:hover {
  color: #cda169;
  transform: translateY(-2px);
}

.add-social-plus {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #cda169;
  color: #14110f;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #14110f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-social-link:hover {
  transform: translateY(-2px) scale(1.1);
  color: #cda169;
}

.hero-social-link.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

.hero-social-link.can-add {
  opacity: 0.4;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.hero-social-link.can-add:hover {
  opacity: 0.8;
  color: var(--primary);
}

.add-social-plus {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #cda169;
  color: #14110f;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(205, 161, 105, 0.7);
  line-height: 1;
  opacity: 1;
  z-index: 5;
}

.hero-social-link::after {
  content: none;
}

.hero-social-link:hover::after {
  content: none;
}

.hero-social-icon {
  font-size: 12px;
  color: inherit;
}

.hero-social-link:hover .hero-social-icon {
  color: inherit;
}

/* Legacy social styles for backwards compatibility */

.hero-profile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-link,
.social-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(205, 161, 105, 0.1);
  border: 1px solid rgba(205, 161, 105, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link {
  cursor: pointer;
}

.social-link:hover {
  background: rgba(205, 161, 105, 0.2);
  border-color: rgba(205, 161, 105, 0.4);
  transform: translateY(-2px);
}

.social-placeholder {
  opacity: 0.3;
  cursor: not-allowed;
}

.hero-v3-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 30px;
  height: 30px;
}

.hero-action-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(205, 161, 105, 0.4);
  transform: translateY(-1px);
}

.hero-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hero-action-btn.spin svg {
  animation: hero-spin 1.2s linear infinite;
}

@keyframes hero-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.social-icon {
  font-size: 16px;
  color: #cda169;
}

.hero-v3-title {
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-username-highlight {
  color: #deb884;
  font-weight: 700;
  text-transform: none;
}

.hero-v3-entity-name-highlight {
  color: #f7f3ee;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.2px;
  font-size: 16px;
  margin-right: 0;
  display: inline-block;
  font-family: var(--font-display);
}

.hero-v3-title-suffix {
  opacity: 0.8;
  font-size: 12px;
}

/* Profile Modal */

.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.profile-modal {
  position: relative;
  background:
    radial-gradient(circle at 80% -10%, rgba(205, 161, 105, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(31, 27, 24, 0.98) 0%, rgba(24, 21, 19, 0.98) 100%);
  backdrop-filter: blur(25px) saturate(115%);
  -webkit-backdrop-filter: blur(25px) saturate(115%);
  border: 1px solid rgba(205, 161, 105, 0.3);
  border-radius: 24px;
  padding: 40px;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(205, 161, 105, 0.07) inset;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-modal-content {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-modal-main {
  min-width: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(205, 161, 105, 0.08);
  border: 1px solid rgba(205, 161, 105, 0.2);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #cda169;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(205, 161, 105, 0.15);
  border-color: #cda169;
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

.modal-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}

.modal-avatar-image,
.modal-avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid rgba(205, 161, 105, 0.4);
  box-shadow: 0 8px 32px rgba(205, 161, 105, 0.3);
  object-fit: cover;
}

.modal-avatar-placeholder {
  background: linear-gradient(135deg, #cda169 0%, #a77b43 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 600;
  color: #14110f;
}

.modal-level-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #cda169 0%, #deb884 100%);
  border: 3px solid #14110f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #14110f;
  box-shadow: 0 4px 12px rgba(205, 161, 105, 0.4);
}

.modal-verified-badge {
  position: absolute;
  bottom: 8px;
  right: calc(50% - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #5c8ead;
  border-radius: 50%;
  border: 3px solid rgba(37, 34, 32, 0.95);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

.modal-badge-check {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.modal-info-section {
  text-align: center;
  padding: 0 16px;
  margin-bottom: 24px;
}

.modal-level-section {
  padding: 24px 20px;
  margin-bottom: 24px;
  background: rgba(37, 34, 32, 0.4);
  border: 1px solid rgba(205, 161, 105, 0.15);
  border-radius: 16px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.modal-level-row,
.modal-xp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.modal-xp-row {
  margin-bottom: 16px;
}

.modal-level-label,
.modal-xp-label {
  font-size: 13px;
  font-weight: 600;
  color: #c9b5a1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-level-value,
.modal-xp-value {
  font-size: 14px;
  font-weight: 700;
  color: #cda169;
}

.modal-xp-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(26, 22, 20, 0.3);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(205, 161, 105, 0.15);
}

.modal-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #cda169 0%, #deb884 100%);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(205, 161, 105, 0.4);
}

.modal-username {
  font-size: 28px;
  font-weight: 700;
  color: #cda169;
  margin: 0 0 12px 0;
}

.modal-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #c9b5a1;
  font-family: 'Courier New', monospace;
  margin-bottom: 16px;
}

.modal-copy-btn {
  background: rgba(205, 161, 105, 0.1);
  border: 1px solid rgba(205, 161, 105, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-copy-btn:hover {
  background: rgba(205, 161, 105, 0.2);
  border-color: #cda169;
}

.modal-copy-btn.copied::after {
  content: "Copied";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #cda169;
  background: rgba(26, 22, 20, 0.7);
  border-radius: 5px;
}

.modal-bio {
  font-size: 15px;
  color: #c9b5a1;
  line-height: 1.6;
  margin: 0 0 24px 0;
  padding: 18px;
  background: rgba(205, 161, 105, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(205, 161, 105, 0.12);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-edit-btn {
  background: rgba(205, 161, 105, 0.12);
  border: 1px solid rgba(205, 161, 105, 0.25);
  border-radius: 12px;
  padding: 12px 32px;
  color: #cda169;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
  backdrop-filter: blur(5px);
}

.modal-edit-btn:hover {
  background: rgba(205, 161, 105, 0.2);
  border-color: #deb884;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.modal-badges-section {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(205, 161, 105, 0.2);
}

.modal-badges-title {
  font-size: 16px;
  font-weight: 600;
  color: #deb884;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
  text-align: left;
}

.modal-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 12px;
}

/* On-chain badges grid inside profile modal */

.modal-onchain-badges {
  margin-bottom: 12px;
}

.modal-onchain-title {
  font-size: 13px;
  font-weight: 600;
  color: #deb884;
  margin: 0 0 8px 0;
}

.modal-onchain-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 12px;
}

.modal-onchain-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(20, 18, 16, 0.6);
  border: 1px solid rgba(205, 161, 105, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.modal-onchain-badge:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(205, 161, 105, 0.08);
  border-color: #cda169;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.modal-onchain-badge.owned {
  border-color: rgba(74, 222, 128, 0.22);
  box-shadow: 0 6px 18px rgba(74, 222, 128, 0.04) inset;
}

.modal-onchain-badge-icon img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.modal-onchain-badge-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.badge-fallback-letter {
  color: #deb884;
  font-weight: 700;
}

.modal-onchain-badge-name {
  color: #deb884;
  font-weight: 600;
  font-size: 13px;
}

.modal-onchain-badge-meta {
  color: #9a8f83;
  font-size: 12px;
}

.modal-badge-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(205, 161, 105, 0.08);
  border: 1px solid rgba(205, 161, 105, 0.25);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.modal-badge-item:hover {
  background: rgba(205, 161, 105, 0.15);
  border-color: rgba(205, 161, 105, 0.4);
  transform: translateY(-2px);
}

.modal-badge-item.collection-style {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 12px;
  background: rgba(26, 22, 20, 0.4);
  border: 1px solid rgba(205, 161, 105, 0.12);
  transition: all 0.2s ease;
  aspect-ratio: 1;
}

.modal-badge-item.collection-style:hover {
  transform: scale(1.1);
  background: rgba(205, 161, 105, 0.1);
  border-color: rgba(205, 161, 105, 0.3);
}

.modal-badge-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(205, 161, 105, 0.1);
  color: #deb884;
}

.modal-badge-icon {
  font-size: 22px;
}

.modal-badge-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.modal-badge-name {
  font-size: 14px;
  color: #cda169;
  font-weight: 600;
  word-break: break-word;
}

.modal-badge-description {
  font-size: 12px;
  color: #a39580;
  line-height: 1.4;
  word-break: break-word;
}

.modal-no-badges {
  text-align: center;
  color: #8a7d6f;
  font-size: 14px;
  font-style: italic;
  padding: 32px 16px;
}

@media (max-width: 768px) {
  .profile-modal {
    padding: 32px 24px;
    max-width: 560px;
  }

  .profile-modal-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-badges-section {
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid rgba(205, 161, 105, 0.2);
  }

  .modal-badges-title {
    text-align: center;
  }

  .modal-avatar-image,
  .modal-avatar-placeholder {
    width: 120px;
    height: 120px;
  }

  .modal-level-badge {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .modal-username {
    font-size: 24px;
  }

  .modal-badges-grid {
    grid-template-columns: 1fr;
  }

  .modal-badge-item {
    padding: 12px;
    gap: 12px;
  }

  .modal-badge-icon-box {
    width: 40px;
    height: 40px;
  }

  .modal-badge-icon {
    font-size: 24px;
  }
}

.hero-v3-value {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -1.5px;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-networth-skeleton-value {
  width: clamp(180px, 22vw, 260px);
  height: 60px;
  border-radius: 18px;
  flex-shrink: 0;
}

.hero-networth-skeleton-pill {
  width: 86px;
  height: 28px;
  border-radius: 999px;
  flex-shrink: 0;
}

.hero-networth-skeleton-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 520px);
}

.hero-networth-skeleton-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.hero-networth-skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.hero-networth-skeleton-line.address {
  width: min(100%, 440px);
}

.hero-networth-skeleton-copy {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hero-networth-skeleton-line.bio {
  width: min(100%, 180px);
}

.hero-networth-skeleton-stats {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  margin-top: 8px;
}

.hero-networth-skeleton-stat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 120px;
}

.hero-networth-skeleton-stat-value {
  width: 72px;
  height: 24px;
  border-radius: 12px;
}

.hero-networth-skeleton-stat-value.small {
  width: 56px;
}

.hero-networth-skeleton-stat-label {
  width: 94px;
  height: 10px;
  border-radius: 999px;
}

.hero-networth-skeleton-stat.compact .hero-networth-skeleton-stat-label {
  width: 108px;
}

@media (max-width: 768px) {
  .hero-v3-value {
    font-size: 42px;
  }

  .hero-networth-skeleton-value {
    width: min(100%, 210px);
    height: 48px;
  }

  .hero-networth-skeleton-pill {
    width: 74px;
    height: 24px;
  }

  .hero-networth-skeleton-meta {
    width: 100%;
  }

  .hero-networth-skeleton-line.address {
    width: min(100%, 260px);
  }

  .hero-networth-skeleton-line.bio {
    width: min(100%, 140px);
  }

  .hero-networth-skeleton-stats {
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
  }

  .hero-networth-skeleton-stat {
    min-width: 100px;
  }
}

.dashboard-min-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 0.3px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .dashboard-min-footer {
    margin: 6px 0 20px;
    font-size: 11px;
    gap: 8px;
  }
}

.hero-v3-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-v3-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.hero-v3-address-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 4px;
}

.hero-v3-address-inline .address-text {
  font-family: monospace;
  font-size: 12px;
  color: rgba(205, 161, 105, 0.6);
  letter-spacing: 0.5px;
}

.verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  /* Matched to website primary color */
  filter: drop-shadow(0 0 4px rgba(205, 161, 105, 0.3));
  margin-left: 4px;
  animation: tickPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.verified-tick.inline-name {
  margin-left: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.exchange-label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15); /* Soft red for hot wallet / exchange warning */
  color: #ef4444;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  margin-left: 8px;
  animation: tickPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tickPop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-v3-address-inline .copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  color: #cda169;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.hero-v3-address-inline .copy-btn:hover {
  background: rgba(205, 161, 105, 0.1);
  opacity: 1;
}

.hero-v3-address-inline .copy-btn:active {
  transform: scale(0.9);
}

.copy-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #cda169;
  color: #14110f;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.address-age-separator {
  color: var(--text-tertiary);
  opacity: 0.4;
  font-size: 11px;
  margin: 0 6px;
  user-select: none;
}

.address-age-text {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: var(--text-secondary);
  opacity: 0.6;
  white-space: nowrap;
}

.copy-icon-img {
  width: 12px;
  height: 12px;
  display: block;
}

.hero-v3-bio {
  font-size: 15px;
  color: #f7f3ee;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 600px;
  opacity: 0.9;
}

.hero-v3-address {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(205, 161, 105, 0.08);
  border: 1px solid rgba(205, 161, 105, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 100%;
}

.hero-v3-address .address-text {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #cda169;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.hero-v3-address .copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.hero-v3-address .copy-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.hero-v3-address .copy-btn:active {
  transform: scale(0.95);
}

.hero-v3-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 6px 14px;
  border-radius: 10px;
}

.hero-v3-change.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.hero-v3-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.hero-v3-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.age-icon {
  font-size: 11px;
}

/* Stats Row */

.hero-v3-stats {
  display: flex;
  gap: 32px;
}

@media (max-width: 500px) {
  .hero-v3-stats {
    gap: 20px;
  }
}

.hero-v3-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-v3-stat-value {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.hero-v3-stat-value.positive {
  color: #10b981;
}

.hero-v3-stat-value.negative {
  color: #ef4444;
}

.hero-v3-stat-value.age {
  color: #cda169;
}

.hero-v3-stat.wallet-age {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-v3-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--spacing-xl);
  padding: 0 4px;
}

.portfolio-tab-btn {
  position: relative;
  padding: 10px 0;
  margin-right: 12px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.portfolio-tab-btn:not(.analytics-tab-v4):not(:last-child)::before {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
}

/* Ensure no separator after the last regular tab before the Analytics button */

.portfolio-tab-btn+.analytics-tab-v4::before {
  display: none;
}

/* If analytics tab exists, the button before it shouldn't have a separator */

.portfolio-tab-btn:has(+ .analytics-tab-v4)::before {
  display: none;
}

.portfolio-tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cda169, #f0d9b5);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.portfolio-tab-btn:hover {
  color: var(--text-secondary);
  transform: translateY(-1px);
}

.portfolio-tab-btn.active {
  color: var(--text-primary);
}

.portfolio-tab-btn.active::after {
  transform: scaleX(1);
}

.analytics-tab-v4 {
  background: var(--glass) !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-subtle) !important;
  transition: all 0.2s ease !important;
}

.analytics-tab-v4:hover {
  background: var(--glass-hover) !important;
  border-color: var(--primary) !important;
}

.nft-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  background: rgba(205, 161, 105, 0.15);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  min-width: 18px;
  height: 16px;
  vertical-align: middle;
  transform: translateY(-1px);
  border: 1px solid rgba(205, 161, 105, 0.2);
}

.portfolio-tab-btn.active .nft-tab-count {
  background: var(--primary);
  color: var(--bg-primary);
  border-color: var(--primary);
}

.analytics-tab-v4.active {
  background: rgba(205, 161, 105, 0.15) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.analytics-tab-v4.active::after {
  display: none;
}

.analytics-btn-content {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.portfolio-content-panel {
  animation: portfolioPanelEnter 0.24s ease;
  transform-origin: top center;
}

@keyframes portfolioPanelEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .portfolio-tabs-row {
    gap: 14px;
  }

  .portfolio-tab-btn {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

/* ========================================
   Portfolio Chart Component
   ======================================== */

.portfolio-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-container {
  position: relative;
  height: 70px;
  width: 100%;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  filter: drop-shadow(0 2px 4px rgba(205, 161, 105, 0.3));
  animation: chartDraw 1.5s ease-out forwards;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

@keyframes chartDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Timeframe Buttons */

.chart-timeframes {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.timeframe-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeframe-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.timeframe-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Hero Card V2 - Net Worth Section (Legacy)
   ======================================== */

.hero-card-v2 {
  position: relative;
  background: linear-gradient(165deg, rgba(30, 28, 24, 0.98), rgba(18, 16, 12, 0.99));
  border-radius: 28px;
  padding: 0;
  margin-bottom: var(--spacing-xl);
  border: 1px solid rgba(205, 161, 105, 0.25);
  backdrop-filter: blur(40px);
  overflow: hidden;
}

.hero-v2-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(205, 161, 105, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
  }
}

.hero-v2-content {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-v2-content {
    padding: 32px 24px;
  }
}

.hero-v2-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.hero-v2-icon {
  font-size: 16px;
}

.hero-v2-value {
  font-size: 68px;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -3px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #cda169 0%, #f0d9b5 50%, #cda169 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroValueShine 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(205, 161, 105, 0.25));
}

@keyframes heroValueShine {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

@media (max-width: 768px) {
  .hero-v2-value {
    font-size: 48px;
    letter-spacing: -2px;
  }
}

/* Breakdown Cards */

.hero-v2-breakdown {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-v2-breakdown-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  min-width: 180px;
  transition: all 0.3s ease;
}

.hero-v2-breakdown-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-v2-breakdown-card.wallet {
  border-left: 3px solid #cda169;
}

.hero-v2-breakdown-card.defi.positive {
  border-left: 3px solid #10b981;
}

.hero-v2-breakdown-card.defi.negative {
  border-left: 3px solid #ef4444;
}

.hero-v2-breakdown-icon {
  font-size: 24px;
  opacity: 0.9;
}

.hero-v2-breakdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.hero-v2-breakdown-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  opacity: 0.7;
}

.hero-v2-breakdown-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.hero-v2-breakdown-card.defi.positive .hero-v2-breakdown-value {
  color: #10b981;
}

.hero-v2-breakdown-card.defi.negative .hero-v2-breakdown-value {
  color: #ef4444;
}

/* Address Badge */

.hero-v2-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

.hero-v2-address-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: addressDotPulse 2s ease-in-out infinite;
}

@keyframes addressDotPulse {

  0%,
  100% {
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
}

/* --- 9. HERO SECTION (Legacy) --- */

.hero-card {

  background: var(--gradient-hero), var(--glass-strong);

  border-radius: var(--radius-2xl);

  padding: var(--spacing-2xl);

  margin-bottom: var(--spacing-xl);

  border: 2px solid var(--primary);

  backdrop-filter: blur(40px);

  box-shadow: 0 0 30px rgba(205, 161, 105, 0.2), inset 0 0 30px rgba(205, 161, 105, 0.08);

  position: relative;

  overflow: hidden;

}

.hero-card::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 1px;

  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);

}

.hero-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: var(--spacing-md);

}

.section-label {

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: var(--text-tertiary);

}

.refresh-btn {

  background: var(--glass);

  border: 1px solid var(--border-subtle);

  border-radius: var(--radius-md);

  width: 40px;

  height: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 20px;

  cursor: pointer;

  color: var(--text-secondary);

  transition: all var(--transition-base);

}

.refresh-btn:hover:not(:disabled) {

  background: var(--glass-hover);

  border-color: var(--primary);

  color: var(--primary);

  transform: rotate(180deg);

}

.refresh-btn:disabled {

  opacity: 0.3;

  cursor: not-allowed;

}

.total-value {

  font-size: 72px;

  font-weight: 900;

  font-family: var(--font-display);

  letter-spacing: -2px;

  margin: var(--spacing-md) 0;

  background: linear-gradient(135deg, #cda169 0%, #deb884 100%);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

  filter: drop-shadow(0 0 20px rgba(205, 161, 105, 0.3));

}

/* Net Worth Breakdown */

.net-worth-breakdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.breakdown-item.positive {
  color: #10b981;
}

.breakdown-item.negative {
  color: #ef4444;
}

.wallet-info {

  font-size: 14px;

  color: var(--text-secondary);

  font-weight: 500;

}

/* Error Message */

.error-message {

  margin-top: var(--spacing-lg);

  padding: var(--spacing-md) var(--spacing-lg);

  background: rgba(239, 68, 68, 0.1);

  border-radius: var(--radius-md);

  border-left: 3px solid var(--error);

}

.error-message p {

  color: var(--error);

  font-size: 14px;

  font-weight: 500;

  margin-bottom: var(--spacing-sm);

}

.retry-btn {

  background: var(--error);

  color: white;

  border: none;

  padding: 8px 16px;

  border-radius: var(--radius-sm);

  font-weight: 600;

  font-size: 13px;

  cursor: pointer;

  transition: all var(--transition-base);

}

.retry-btn:hover {

  background: #dc2626;

  transform: translateY(-1px);

}

/* --- 10. GRID SECTIONS --- */

.grid-section {
  margin-bottom: 32px;
  will-change: transform, opacity;
}

.token-table-scroll,
.grid-container,
.lp-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 0 4px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1;
  opacity: 0.5;
}

.grid-container {

  background: var(--glass);

  padding: var(--spacing-lg);

  border-radius: var(--radius-xl);

  border: 1px solid var(--border-subtle);

  backdrop-filter: blur(20px);

  box-shadow: var(--shadow-sm);

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

  gap: var(--spacing-md);

}

/* --- 11. CARDS --- */

.card {

  background: var(--gradient-card), var(--glass-strong);

  border-radius: var(--radius-lg);

  padding: var(--spacing-lg);

  display: flex;

  align-items: center;

  justify-content: space-between;

  border: 2px solid var(--border-medium);

  backdrop-filter: blur(20px);

  cursor: pointer;

  transition: all var(--transition-base);

  opacity: 0;

  animation: slideUp 0.4s ease forwards;

  position: relative;

  overflow: hidden;

  box-shadow: 0 0 15px rgba(205, 161, 105, 0.1);

}

.card::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: var(--gradient-primary);

  opacity: 0;

  transition: opacity var(--transition-base);

  z-index: 0;

}

.card:hover {

  transform: translateY(-8px) scale(1.02);

  border-color: var(--primary);

  box-shadow: 0 0 30px rgba(205, 161, 105, 0.25), 0 0 60px rgba(205, 161, 105, 0.15);

}

.card:hover::before {

  opacity: 0.05;

}

.card>* {

  position: relative;

  z-index: 1;

}

/* ========================================
   Token Card - Modern Redesign
   ======================================== */

.token-card-new {
  --token-color: #cda169;
  --token-color-light: #deb884;

  position: relative;
  background: linear-gradient(165deg, rgba(32, 28, 24, 0.95), rgba(20, 18, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: tokenCardFadeIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(15px);
}

@keyframes tokenCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.token-card-new.verified {
  border-color: rgba(205, 161, 105, 0.15);
}

/* Glow effect */

.token-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      rgba(205, 161, 105, 0.03) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Content layout */

.token-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.token-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

/* Logo wrapper */

.token-logo-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(50, 45, 40, 0.9), rgba(30, 27, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.token-logo-wrapper.has-image {
  background: linear-gradient(145deg, rgba(40, 36, 32, 0.95), rgba(25, 23, 20, 0.98));
}

.token-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.token-initial {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
  text-shadow: 0 2px 8px rgba(205, 161, 105, 0.3);
}

/* Verified dot */

.token-verified-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2px solid rgba(20, 18, 16, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Token info */

.token-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.token-symbol {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  font-family: var(--font-primary);
  letter-spacing: 0.1px;
  line-height: 1.2;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.token-network {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.2px;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

/* Right side - balance */

.token-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.token-balance {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.token-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.token-value-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.token-unit-price {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  opacity: 0.5;
  letter-spacing: 0.2px;
}

.token-value.has-value {
  color: var(--primary);
  opacity: 1;
}

.token-card-new:hover .token-network,
.token-card-new:hover .token-symbol,
.token-card-new:hover .token-balance,
.token-card-new:hover .token-value {
  color: var(--token-color);
  opacity: 1;
}

/* Bottom accent */

.token-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--token-color), transparent);
  opacity: 0;
  transition: all 0.3s ease;
}

.token-card-new.verified .token-card-accent {
  opacity: 0.3;
}

/* Legacy Token Card Specific */

.token-card.known-token {

  border-color: var(--primary);

  background: var(--gradient-card), var(--glass-strong);

  box-shadow: 0 0 20px rgba(205, 161, 105, 0.2);

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 12px 24px;

  gap: 16px;

  min-height: 64px;

  line-height: 1;

}

.token-card.known-token::before {

  background: var(--gradient-accent);

}

.token-avatar {

  width: 56px;

  height: 56px;

  border-radius: 50%;

  background: var(--gradient-primary);

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow: 0 0 20px rgba(205, 161, 105, 0.4), inset 0 0 10px rgba(222, 184, 132, 0.25);

  border: 2px solid rgba(205, 161, 105, 0.3);

  flex-shrink: 0;
  overflow: hidden;
  position: relative;

}

.token-avatar.known-token-icon {

  background: var(--gradient-accent);

  box-shadow: 0 0 20px rgba(205, 161, 105, 0.5), inset 0 0 10px rgba(222, 184, 132, 0.2);

  border: 2px solid rgba(205, 161, 105, 0.4);

}

/* Token avatar with logo */

.token-avatar.has-logo {
  background: linear-gradient(145deg, rgba(40, 35, 30, 0.95), rgba(25, 22, 18, 0.98));
  padding: 0;
}

.token-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.token-symbol-badge {

  font-size: 20px;

  font-weight: 900;

  color: white;

  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;

}

.token-center {

  flex: 1;

  display: flex;

  align-items: center;

  justify-content: flex-start;

}

.token-name-row {

  display: flex;

  align-items: center;

  gap: 8px;

  line-height: 1;

}

.token-name {

  font-size: 18px;

  font-weight: 700;

  color: var(--text-primary);

  line-height: 1;

  display: flex;

  align-items: center;

}

.verified-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 18px;

  height: 18px;

  border-radius: 50%;

  background: rgba(16, 185, 129, 0.15);

  border: 1.5px solid var(--success);

  color: var(--success);

  font-size: 10px;

  font-weight: 900;

  flex-shrink: 0;

  line-height: 1;

}

.token-right {

  display: flex;

  flex-direction: column;

  align-items: flex-end;

  justify-content: center;

  gap: 2px;

  flex-shrink: 0;

  line-height: 1;

}

.token-amount {

  font-size: 18px;

  font-weight: 700;

  color: var(--text-primary);

  font-family: var(--font-display);

  line-height: 1;

  display: flex;

  align-items: center;

}

.token-usd {

  font-size: 12px;

  color: var(--text-tertiary);

  font-weight: 500;

  line-height: 1;

}

/* Staking Card */

.icon-square {

  width: 48px;

  height: 48px;

  border-radius: var(--radius-md);

  background: var(--gradient-primary);

  box-shadow: 0 0 20px rgba(205, 161, 105, 0.4), inset 0 0 10px rgba(222, 184, 132, 0.25);

  border: 2px solid rgba(205, 161, 105, 0.3);

}

.staking-card {

  justify-content: flex-start;

  gap: var(--spacing-md);

}

.staking-info {

  display: flex;

  flex-direction: column;

  gap: var(--spacing-xs);

}

.staking-name {

  font-size: 16px;

  font-weight: 700;

  color: var(--text-primary);

}

.staking-value {

  font-size: 14px;

  color: var(--text-secondary);

  font-weight: 500;

}

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

/* --- Premium Global Toggle Button --- */

.global-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(26, 22, 20, 0.85);
  border: 1px solid rgba(205, 161, 105, 0.25);
  color: #cda169;
  padding: 6px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 36px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.global-toggle-btn:hover {
  background: rgba(205, 161, 105, 0.12);
  border-color: #deb884;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.global-toggle-btn:active {
  transform: translateY(0);
}

.global-toggle-btn svg {
  transition: transform 0.3s ease;
  color: inherit;
}

.global-toggle-btn:hover svg {
  transform: scale(1.1);
}

/* --- Premium View Mode Toggle --- */

.view-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(205, 161, 105, 0.2);
  gap: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
}

.view-mode-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.view-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.view-mode-btn.active {
  background: linear-gradient(135deg, #cda169 0%, #a77b43 100%);
  color: #14110f;
  box-shadow: none;
}

.view-mode-btn.active svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.view-mode-btn svg {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-mode-btn:active svg {
  transform: scale(0.85);
}

/* ========================================
   DeFi Position Card V2 - Fixed Layout
   ======================================== */

.defi-card-v2 {
  --protocol-color: #cda169;
  position: relative;
  background: linear-gradient(165deg, rgba(24, 22, 20, 0.98), rgba(16, 14, 12, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: defiCardFadeIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(15px);
  grid-column: span 2;
}

@keyframes defiCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .defi-card-v2 {
    grid-column: span 1;
  }
}

.defi-card-v2:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Token Table Styles */

.token-table-container {
  background: var(--glass);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
}

.token-table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.token-table-scroll::-webkit-scrollbar {
  display: none;
}

.token-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.token-table th,
.token-table td {
  padding: 8px 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Column Widths */

.token-table th:nth-child(1),
.token-table td:nth-child(1) {
  width: 35%;
  padding-left: 55px;
}

.token-table th:nth-child(2),
.token-table td:nth-child(2) {
  width: 20%;
}

.token-table th:nth-child(3),
.token-table td:nth-child(3) {
  width: 20%;
}

.token-table th:nth-child(4),
.token-table td:nth-child(4) {
  width: 25%;
  padding-right: 40px;
}

.token-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.1);
}

.token-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
  transition: background 0.2s ease;
}

.token-table tr:last-child td {
  border-bottom: none;
}

.token-table tr:hover td {
  background: rgba(205, 161, 105, 0.03);
}

.token-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.token-cell-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.token-table-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.token-table-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.token-table-symbol {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.2px;
}

.token-table-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  opacity: 0.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-table-price,
.token-table-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.token-table-value {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
}

.token-table-value.highlight {
  background: linear-gradient(135deg, #cda169, #f0d9b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.table-skeleton {
  padding: 32px;
  text-align: center;
  color: var(--text-tertiary);
  font-style: italic;
  opacity: 0.6;
}

@media (max-width: 768px) {

  .token-table th:nth-child(2),
  .token-table td:nth-child(2),
  .token-table th:nth-child(3),
  .token-table td:nth-child(3) {
    display: none;
  }

  .token-table th,
  .token-table td {
    padding: 12px 16px;
  }
}

/* Header */

.defi-v2-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
}

.defi-v2-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.defi-v2-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.defi-v2-title {
  flex: 1;
  min-width: 0;
}

.defi-v2-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.defi-v2-type,
.defi-v2-type-link {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.defi-v2-type-link:hover {
  opacity: 1;
  color: var(--primary);
  text-decoration: underline;
}

.defi-card-v2.is-compact .defi-v2-title h3 {
  font-size: 17px;
}

.defi-v2-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.defi-v2-toggle,
.defi-v2-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all 0.2s ease;
}

.defi-v2-toggle {
  cursor: pointer;
  padding: 0;
}

.defi-v2-toggle:hover,
.defi-v2-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.defi-v2-toggle:focus-visible,
.defi-v2-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 2px;
}

.defi-card-v2.is-compact {
  grid-column: span 1;
}

.defi-card-v2.is-compact .defi-v2-header {
  padding-bottom: 14px;
}

.defi-v2-compact-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 0 24px 22px;
}

.defi-card-v2.is-compact .defi-v2-net-label {
  font-size: 10px;
}

.defi-card-v2.is-compact .defi-v2-net-value {
  font-size: 28px;
  line-height: 1;
}

.defi-card-v2.is-expanded {
  grid-column: span 2;
}

/* Two Column Layout */

.defi-v2-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
  /* Fixed height for consistent layout */
}

@media (max-width: 600px) {
  .defi-v2-columns {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* Column */

.defi-v2-column {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.defi-v2-column.supply {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, transparent 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.defi-v2-column.borrow {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, transparent 100%);
}

@media (max-width: 600px) {
  .defi-v2-column.supply {
    border-right: none;
  }

  .defi-v2-column {
    height: auto;
    min-height: 120px;
  }
}

/* Column Header */

.defi-v2-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.defi-v2-column-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  flex: 1;
}

.defi-v2-column-total {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.defi-v2-column-total.debt {
  color: #ef4444;
}

/* Column Items - Scrollable */

.defi-v2-column-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  /* Important for flex overflow */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.defi-v2-column-items::-webkit-scrollbar {
  width: 4px;
}

.defi-v2-column-items::-webkit-scrollbar-track {
  background: transparent;
}

.defi-v2-column-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Item Row */

.defi-v2-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.defi-v2-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.defi-v2-item-token {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.defi-v2-item-token-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.defi-v2-item-meta {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.defi-v2-item-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.defi-v2-item-amount {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  text-align: right;
}

.defi-v2-item-amount.supply {
  color: #10b981;
}

.defi-v2-item-amount.debt {
  color: #ef4444;
}

.defi-v2-item-usd {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  opacity: 0.7;
  text-align: right;
}

.defi-v2-item-usd.debt {
  color: rgba(239, 68, 68, 0.6);
}

/* Empty State */

.defi-v2-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.5;
}

/* Footer */

.defi-v2-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.defi-v2-net {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.defi-v2-net-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  opacity: 0.6;
}

.defi-v2-net-value {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-display);
}

.defi-v2-net-value.positive {
  color: #10b981;
}

.defi-v2-net-value.negative {
  color: #ef4444;
}

/* Health Bar */

.defi-v2-health {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.defi-v2-health-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.defi-v2-health-bar {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.defi-v2-health-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

@media (max-width: 600px) {
  .defi-v2-header {
    padding: 18px 20px 14px;
  }

  .defi-v2-actions {
    gap: 6px;
  }

  .defi-v2-compact-body {
    min-height: 88px;
    padding: 0 20px 20px;
  }

  .defi-v2-footer {
    gap: 12px;
    padding: 14px 20px;
  }

  .defi-card-v2.is-compact .defi-v2-net-value {
    font-size: 24px;
  }
}

/* ========================================
   DeFi Position Card - Consolidated Design (Legacy)
   ======================================== */

.defi-card-consolidated {
  position: relative;
  background: linear-gradient(165deg, rgba(28, 24, 20, 0.98), rgba(18, 16, 14, 0.99));
  border: 1px solid rgba(205, 161, 105, 0.12);
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardFadeIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  grid-column: span 2;
}

@media (max-width: 1200px) {
  .defi-card-consolidated {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .defi-card-consolidated {
    grid-column: span 1;
  }
}

.defi-card-consolidated:hover {
  transform: translateY(-6px);
  border-color: rgba(205, 161, 105, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(205, 161, 105, 0.06);
}

/* Accent Line at Top */

.defi-consolidated-accent {
  height: 4px;
  width: 100%;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.defi-card-consolidated:hover .defi-consolidated-accent {
  height: 5px;
  opacity: 1;
}

/* Header */

.defi-consolidated-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(205, 161, 105, 0.08);
}

.defi-consolidated-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(40, 35, 30, 0.9), rgba(25, 22, 18, 0.95));
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.defi-card-consolidated:hover .defi-consolidated-logo {
  transform: scale(1.05);
}

.defi-consolidated-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.defi-consolidated-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.defi-consolidated-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.3px;
}

.defi-consolidated-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.defi-consolidated-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(205, 161, 105, 0.08);
  border: 1px solid rgba(205, 161, 105, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.defi-consolidated-link:hover {
  background: rgba(205, 161, 105, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Positions Grid */

.defi-consolidated-positions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .defi-consolidated-positions {
    grid-template-columns: 1fr;
  }
}

/* Position Section */

.defi-position-section {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.defi-position-section.supply {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), transparent);
  border-right: 1px solid rgba(205, 161, 105, 0.06);
}

.defi-position-section.debt {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), transparent);
}

@media (max-width: 600px) {
  .defi-position-section.supply {
    border-right: none;
    border-bottom: 1px solid rgba(205, 161, 105, 0.06);
  }
}

.defi-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.defi-section-icon {
  font-size: 16px;
}

.defi-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  opacity: 0.8;
}

.defi-section-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.defi-position-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.defi-position-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.defi-position-token {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.defi-position-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.defi-position-value {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
}

.defi-position-value.supply {
  color: #10b981;
}

.defi-position-value.debt {
  color: #ef4444;
}

.defi-position-usd {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  opacity: 0.8;
}

.defi-position-usd.debt {
  color: rgba(239, 68, 68, 0.7);
}

/* Footer */

.defi-consolidated-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(205, 161, 105, 0.08);
}

.defi-net-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.defi-net-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  opacity: 0.7;
}

.defi-net-values {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.defi-net-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.defi-net-usd {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
}

.defi-net-usd.positive {
  color: #10b981;
}

.defi-net-usd.negative {
  color: #ef4444;
}

.defi-health-indicator {
  width: 120px;
}

.defi-health-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.defi-health-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Legacy DeFi card styles (kept for compatibility) */

.defi-card-pro {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 25, 20, 0.95), rgba(20, 18, 15, 0.98));
  border: 1px solid rgba(205, 161, 105, 0.15);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardFadeIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.defi-card-pro:hover {
  transform: translateY(-4px);
  border-color: rgba(205, 161, 105, 0.35);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(205, 161, 105, 0.08);
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Header */

.defi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Protocol Logo */

.defi-logo-container {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(40, 35, 30, 0.9), rgba(25, 22, 18, 0.95));
  border: 2px solid rgba(205, 161, 105, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.defi-card-pro:hover .defi-logo-container {
  transform: scale(1.05);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.defi-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Type Pill */

.defi-type-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.defi-card-pro:hover .defi-type-pill {
  transform: translateX(-2px);
}

.defi-type-icon {
  font-size: 14px;
}

/* Card Body */

.defi-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.defi-protocol-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.defi-position-type {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
  font-weight: 500;
  opacity: 0.8;
}

/* Card Footer */

.defi-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(205, 161, 105, 0.1);
  margin-top: auto;
}

.defi-value-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.defi-value-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.defi-value-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #cda169 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.defi-value-number.is-debt {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Visit Button */

.defi-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(205, 161, 105, 0.15), rgba(205, 161, 105, 0.08));
  border: 1px solid rgba(205, 161, 105, 0.3);
  border-radius: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.defi-visit-btn:hover {
  background: linear-gradient(135deg, rgba(205, 161, 105, 0.25), rgba(205, 161, 105, 0.15));
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 161, 105, 0.2);
}

/* Accent Line */

.defi-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.defi-card-pro:hover .defi-card-accent {
  height: 4px;
  opacity: 1;
}

/* Legacy DeFi card styles (kept for compatibility) */

.defi-position-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.defi-position-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205, 161, 105, 0.15);
}

.defi-type-badge {

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 6px 12px;

  border-radius: 8px;

  border: 1px solid;

  width: fit-content;

  font-size: 12px;

  font-weight: 600;

}

.defi-type-dot {

  width: 6px;

  height: 6px;

  border-radius: 50%;

  display: inline-block;

}

.defi-type-label {

  color: var(--text-primary);

}

.defi-content {

  display: flex;

  flex-direction: column;

  gap: 4px;

}

.defi-position-name {

  font-size: 16px;

  font-weight: 700;

  color: var(--text-primary);

  margin: 0;

  line-height: 1;

}

.defi-position-protocol {

  font-size: 12px;

  color: var(--text-tertiary);

  margin: 0;

  font-weight: 500;

}

.defi-value-section {

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  padding-top: 8px;

  border-top: 1px solid rgba(205, 161, 105, 0.1);

}

.defi-amount {

  display: flex;

  flex-direction: column;

  gap: 4px;

}

.defi-value-label {

  font-size: 11px;

  color: var(--text-tertiary);

  font-weight: 500;

  text-transform: uppercase;

  letter-spacing: 0.5px;

}

.defi-value-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.defi-value-amount.debt-value {
  color: #ef4444;
}

/* Protocol Logo */

.defi-protocol-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.defi-protocol-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Source Badge */

.defi-source-badge {
  display: inline-block;
  font-size: 9px;
  background: rgba(205, 161, 105, 0.15);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Protocol Link */

.defi-protocol-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.defi-protocol-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Position relative for icon positioning */

.defi-position-card {
  position: relative;
}

/* States */

.loading-state,
.error-state,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-tertiary);
  font-size: 15px;
  font-weight: 500;

}

.error-state {

  color: var(--error);

}

.empty-state {

  color: var(--text-muted);

}

/* Pulse Animation */

.pulse {

  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;

  color: var(--text-tertiary);

  font-size: 24px;

  font-weight: 600;

}

@keyframes pulse {

  0%,
  100% {

    opacity: 0.5;

  }

  50% {

    opacity: 1;

  }

}

/* --- SKELETON LOADING STATES --- */

.skeleton-card {

  cursor: default !important;

  pointer-events: none;

}

.skeleton-card:hover {

  transform: none !important;

}

.skeleton {

  background: linear-gradient(90deg,

      var(--glass) 0%,

      var(--glass-hover) 50%,

      var(--glass) 100%);

  background-size: 200% 100%;

  animation: shimmer 1.5s infinite;

  border-radius: var(--radius-sm);

}

.skeleton-circle {

  width: 48px;

  height: 48px;

  border-radius: 50%;

}

.skeleton-line {

  height: 16px;

  border-radius: var(--radius-sm);

  margin-bottom: 8px;

}

.skeleton-line:last-child {

  margin-bottom: 0;

}

.skeleton-text {

  display: flex;

  flex-direction: column;

  gap: var(--spacing-xs);

}

@keyframes shimmer {

  0% {

    background-position: -200% 0;

  }

  100% {

    background-position: 200% 0;

  }

}

/* --- 12. ANIMATIONS --- */

@keyframes slideUp {

  from {

    opacity: 0;

    transform: translateY(20px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}

.fade-in {

  animation: slideUp 0.6s ease forwards;

}

/* --- 13. RESPONSIVE DESIGN --- */

@media (max-width: 1200px) {

  .grid-container {

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

  }



  .total-value {

    font-size: 56px;

  }

}

@media (max-width: 768px) {

  .app-container {

    padding: var(--spacing-lg) var(--spacing-md);

  }



  .navbar {

    flex-direction: column;

    gap: var(--spacing-lg);

    align-items: stretch;

  }



  .nav-left {

    flex-direction: column;

    gap: var(--spacing-lg);

  }



  .nav-links {

    justify-content: center;

    flex-wrap: wrap;

  }



  .nav-right {

    flex-direction: column;

    gap: var(--spacing-md);

  }



  .connect-btn {

    width: 100%;

    justify-content: center;

  }



  .network-badge {

    justify-content: center;

  }



  .hero-card {

    padding: var(--spacing-xl) var(--spacing-lg);

  }



  .total-value {

    font-size: 48px;

  }



  .hero-header {

    flex-direction: column;

    align-items: flex-start;

    gap: var(--spacing-md);

  }



  .grid-container {

    grid-template-columns: 1fr;

    padding: var(--spacing-md);

  }



  .card {

    padding: var(--spacing-md);

  }

}

@media (max-width: 480px) {

  .total-value {

    font-size: 36px;

    letter-spacing: -1px;

  }



  .logo-img {

    height: 44px;

  }



  .section-label {

    font-size: 11px;

  }



  .wallet-picker-panel {

    left: 0;

    right: 0;

    min-width: auto;

  }

}

/* === LIQUIDITY POSITION CARDS === */

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .lp-grid {
    grid-template-columns: 1fr;
  }
}

.lp-card {
  --lp-color: #22c55e;
  position: relative;
  background: linear-gradient(165deg, rgba(24, 22, 20, 0.98), rgba(16, 14, 12, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: lpCardFadeIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(15px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes lpCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Header */

.lp-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
}

.lp-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.lp-card-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.lp-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lp-card-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lp-card-type {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.lp-card-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lp-card-dot {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.lp-card-symbol {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-display);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-card-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lp-card-flag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 2px 7px;
}

/* Body */

.lp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px 16px;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex: 1;
  min-height: 150px;
}

.lp-card-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lp-card-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 62px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.lp-card-stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  opacity: 0.68;
}

.lp-card-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: 0;
}

.lp-card-stat-value.text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.lp-card-stat-value.highlight {
  color: var(--lp-color);
}

.lp-card-stat-value.highlight.na {
  color: var(--text-secondary);
  opacity: 0.82;
}

.lp-card-stat-value.small {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.lp-card-stat-value.small.muted {
  color: var(--text-tertiary);
  opacity: 0.75;
}

.lp-token-colored {
  font-weight: 700;
}

.lp-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.lp-card-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.lp-card-detail-row .lp-card-stat-label {
  min-width: 92px;
}

.lp-card-detail-row .lp-card-stat-value {
  text-align: right;
  white-space: nowrap;
  max-width: 72%;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-card-detail-row.long {
  align-items: flex-start;
}

.lp-card-detail-row .lp-card-stat-value.wrap {
  white-space: normal;
  max-width: 68%;
  overflow: visible;
  word-break: break-word;
  line-height: 1.4;
}

.lp-card-detail-row .lp-card-stat-value.wrap::-webkit-scrollbar {
  display: none;
}

/* Link Button */

.lp-card-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.lp-card-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lp-color);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Section Title with Icon */

.section-title span {
  margin-right: 8px;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg-primary);
}

.loading-screen__shell {
  width: min(100%, 360px);
  padding: 12px;
  text-align: center;
}

.loading-screen__mark {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.loading-screen__logo-wrap {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(205, 161, 105, 0.08);
  border: 1px solid rgba(205, 161, 105, 0.14);
}

.loading-screen__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  animation: loadingLogoFloat 2s ease-in-out infinite;
}

.loading-screen__copy h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.loading-screen__copy p {
  margin: 8px auto 0;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.6;
}

.loading-screen__meter {
  margin-top: 18px;
}

.loading-screen__meter-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.loading-screen__meter-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(205, 161, 105, 0.18), rgba(222, 184, 132, 0.92));
  animation: loadingSweep 1.5s ease-in-out infinite;
}

@keyframes loadingLogoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-140%);
  }

  100% {
    transform: translateX(260%);
  }
}

:root[data-theme="light"] .loading-screen__logo-wrap {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
  .loading-screen__mark {
    margin-bottom: 16px;
  }

  .loading-screen__logo {
    width: 34px;
    height: 34px;
  }

  .loading-screen__copy p {
    font-size: 14px;
  }
}

/* consolidated into line 4025 */

.global-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #cda169;
  color: #fff;
  transform: translateY(-1px);
}

.global-toggle-btn svg {
  color: inherit;
}/* === DAFTAR DESIGN SYSTEM TOKENS === */

:root {
  /* Background & Surfaces - Dark Charcoal Brown */
  --bg-primary: #14110f;
  --bg-secondary: #1d1916;
  --bg-tertiary: #26211d;
  --glass: rgba(205, 161, 105, 0.05);
  --glass-hover: rgba(205, 161, 105, 0.1);
  --glass-strong: rgba(205, 161, 105, 0.12);

  /* Borders - Golden Tan */
  --border-subtle: rgba(205, 161, 105, 0.2);
  --border-medium: rgba(205, 161, 105, 0.35);
  --border-strong: rgba(205, 161, 105, 0.5);

  /* Shadows - Golden Glow */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px rgba(205, 161, 105, 0.25);

  /* Typography */
  --text-primary: #f7f3ee;
  --text-secondary: #d6c6b3;
  --text-tertiary: #9f8d79;
  --text-muted: #9f8d79;

  /* Brand Colors - Movechi Golden Tan */
  --primary: #cda169;
  --primary-light: #deb884;
  --primary-dark: #a77b43;
  --accent: #cda169;
  --accent-light: #deb884;
  --gold: #cda169;
  --gold-dark: #a77b43;
  --success: #36c690;
  --warning: #e57c23;
  --info: #5c8ead;
  --info-light: #76a6c3;
  --error: #e06a6a;

  /* Data Viz Palette */
  --viz-asset-1: #cda169;
  --viz-asset-2: #3b958b;
  --viz-asset-3: #8c6b9e;
  --viz-asset-4: #c06c50;
  --viz-asset-5: #5c8ead;

  /* Gradients - Golden Tan */
  --gradient-primary: linear-gradient(135deg, #cda169 0%, #a77b43 100%);
  --gradient-accent: linear-gradient(135deg, #deb884 0%, #cda169 100%);
  --gradient-card: linear-gradient(145deg, rgba(205, 161, 105, 0.12), rgba(167, 123, 67, 0.06));
  --gradient-hero: linear-gradient(135deg, rgba(205, 161, 105, 0.2) 0%, rgba(167, 123, 67, 0.1) 100%);
  --gradient-gamer: linear-gradient(135deg, rgba(205, 161, 105, 0.25), rgba(138, 125, 111, 0.15));

  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-primary);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
  --bg-primary: #f4f5f7;
  --bg-secondary: #ffffff;
  --glass: rgba(15, 23, 42, 0.03);
  --glass-hover: rgba(15, 23, 42, 0.06);
  --glass-strong: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(148, 163, 184, 0.3);
  --border-medium: rgba(100, 116, 139, 0.35);
  --border-strong: rgba(71, 85, 105, 0.45);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 28px rgba(100, 116, 139, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --primary: #0f172a;
  --primary-light: #334155;
  --primary-dark: #020617;
  --accent: #0f172a;
  --accent-light: #334155;
  --gold: #0f172a;
  --gold-dark: #020617;
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --gradient-accent: linear-gradient(135deg, #334155 0%, #0f172a 100%);
  --gradient-card: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.92));
  --gradient-hero: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
  --gradient-gamer: linear-gradient(135deg, rgba(226, 232, 240, 0.5), rgba(241, 245, 249, 0.7));
}

:root {
  --bg-gradient: radial-gradient(circle at 20% 20%, var(--bg-tertiary) 0%, var(--bg-secondary) 45%, var(--bg-primary) 100%);
}

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

body {
  margin: 0;
  padding: 0;
  background: #14110f;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

body[data-theme='light'] {
  background: #f4f5f7;
}

/* Subtle golden gradient background - Movechi Theme */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

/* Ensure the React root div takes up full height */

#root {
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}