/* MKFprod Web3 Dashboard - Obsidian & Gold Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #050507;
  --bg-gradient: radial-gradient(circle at 50% -20%, #171510 0%, #050507 80%);
  --panel-bg: rgba(14, 14, 20, 0.88);
  --panel-border: rgba(212, 175, 55, 0.18);
  --panel-border-hover: rgba(212, 175, 55, 0.65);
  
  --gold-solid: #d4af37;
  --gold-light: #f3cf5a;
  --gold-dark: #aa771c;
  --gold-gradient: linear-gradient(135deg, #c5a045 0%, #f6f0c4 30%, #b8860b 70%, #d4af37 100%);
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4e83ff;
  --accent-green: #00e676;
  --accent-danger: #ff3d00;
  --accent-btc: #ff9900;
  
  --text-main: #ffffff;
  --text-muted: #9e9ea7;
  --text-gold: #e5c158;
  
  --glass-blur: 16px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.75);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.2);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  background: var(--bg-deep);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  display: flex;
  overflow-x: hidden;
}

/* App Shell Layout */
#app-shell {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* Sidebar Navigation */
sidebar {
  width: 260px;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--panel-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 10;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--panel-border-hover);
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-tag {
  font-size: 10px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-left: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.nav-item .tab-emoji-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  transition: var(--transition-fast);
}

.nav-item:hover .tab-emoji-icon, .nav-item.active .tab-emoji-icon {
  transform: scale(1.15);
}

/* Dashboard Header Banner */
.dashboard-banner-header {
  width: 100%;
  max-height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.dashboard-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.2) 0%, rgba(5, 5, 7, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

/* Main Content Area */
main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
}

.page-header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.title-emoji-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  vertical-align: middle;
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--glass-blur));
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* Content Views */
.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glass Card Grids & Responsive 9:16 Mobile */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
  position: relative;
}

.glass-card:hover {
  border-color: var(--panel-border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(212, 175, 55, 0.22);
  transform: translateY(-2px);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Chart Monitor Cards */
.chart-monitor-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.monitor-price {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.monitor-change {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.badge-up {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-down {
  background: rgba(255, 61, 0, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(255, 61, 0, 0.3);
}

.chart-canvas-container {
  width: 100%;
  height: 90px;
  background: rgba(5, 5, 8, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

/* Close/Remove Monitor Button (Always Visible & Clickable) */
.remove-monitor-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 61, 0, 0.2);
  border: 1px solid rgba(255, 61, 0, 0.5);
  color: #ff5252;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
  opacity: 1;
  z-index: 5;
}

.remove-monitor-btn:hover {
  background: rgba(255, 61, 0, 0.7);
  color: #ffffff;
  transform: scale(1.15);
}

/* Address Card with Mini QR Button */
.address-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-trigger-btn {
  font-size: 11px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.qr-trigger-btn:hover {
  background: rgba(212, 175, 55, 0.2);
}

.qr-container-inline {
  display: none;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Form Controls */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.input-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.custom-input {
  width: 100%;
  background: rgba(5, 5, 8, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.custom-input:focus {
  border-color: var(--gold-solid);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.btn-primary {
  width: 100%;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: #050507;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--panel-border-hover);
}

/* Drag & Drop File Upload Box */
.drop-zone {
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: rgba(5, 5, 8, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--gold-solid);
  background: rgba(212, 175, 55, 0.05);
}

.drop-zone-icon {
  font-size: 24px;
}

.drop-zone-text {
  font-size: 13px;
  color: var(--text-muted);
}

.img-preview {
  max-width: 64px;
  max-height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-solid);
  margin-top: 8px;
  display: none;
}

/* Checkbox Toggle & Legal Box */
.toggle-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  cursor: pointer;
}

.toggle-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-solid);
  cursor: pointer;
}

.fee-breakdown {
  background: rgba(8, 8, 12, 0.9);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  font-size: 13px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fee-row:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--gold-light);
  padding-top: 10px;
}

.legal-notice-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--gold-light);
  line-height: 1.5;
}

.legal-scroll-area {
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Modal Lock System */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-card {
  background: rgba(15, 15, 22, 0.95);
  border: 1px solid var(--panel-border-hover);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

/* Balance Display */
.balance-val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 8px 0;
  color: var(--gold-light);
}

.token-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.token-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.badge-chain {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-evm { background: rgba(78, 131, 255, 0.2); color: var(--accent-blue); }
.badge-sol { background: rgba(176, 102, 255, 0.2); color: #b066ff; }
.badge-btc { background: rgba(255, 153, 0, 0.2); color: var(--accent-btc); }

/* Copy Address Trigger Button */
.copy-trigger-btn {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.copy-trigger-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.copy-trigger-btn.copied {
  background: rgba(0, 230, 118, 0.2);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Toast Popup Notification System */
.toast-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 15, 22, 0.95);
  border: 1px solid var(--gold-solid);
  color: var(--gold-light);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), var(--shadow-gold);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 10px;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Tab & Active States */
.btn-secondary.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-solid);
  color: var(--gold-light);
  font-weight: 600;
}

/* Candy Machine Dynamic Meme Background Engine (16:9 & 9:16) */
#view-candymachine {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  background-image: linear-gradient(180deg, rgba(5, 5, 7, 0.25) 0%, rgba(5, 5, 7, 0.50) 100%), url('assets/brand/candy16-9.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: 1px solid var(--gold-solid);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.3);
  overflow: hidden;
  transition: var(--transition-fast);
}

#view-candymachine .glass-card {
  background: rgba(8, 8, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), var(--shadow-gold);
}

/* PC 16:9 Layout: Full width graph, Favorites in sidebar under menu */
.sidebar-favorites-panel {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
}

.mobile-favorites-card {
  display: none; /* Hidden on PC 16:9 */
}

/* Mobile Hamburger Square Button & Listing Modal Drawer */
.mobile-hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--panel-border-hover);
  color: var(--gold-light);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-gold);
}

.mobile-hamburger-btn:hover, .mobile-hamburger-btn:active {
  background: rgba(212, 175, 55, 0.25);
  transform: scale(1.05);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(20, 20, 28, 0.9);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-menu-item:hover, .mobile-menu-item:active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-solid);
  color: var(--gold-light);
}

.mobile-menu-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(170, 119, 28, 0.2) 100%);
  border-color: var(--gold-solid);
  color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

.mobile-menu-item .tab-emoji-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* MOBILE & PWA RESPONSIVE BREAKPOINTS (Only triggers on mobile screens <= 900px) */
@media (max-width: 900px) {
  .mobile-hamburger-btn {
    display: flex;
  }

  sidebar {
    display: none; /* Hide sidebar on mobile in favor of square hamburger button listing modal */
  }

  #app-shell {
    flex-direction: column;
  }

  .sidebar-favorites-panel {
    display: none;
  }

  .mobile-favorites-card {
    display: block;
    margin-bottom: 16px;
  }

  .dashboard-banner-header {
    order: -2;
    margin-bottom: 12px;
    max-height: 140px;
  }

  main {
    order: 0;
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 16px;
  }

  .brand-header {
    display: none;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  #view-candymachine {
    background-image: linear-gradient(180deg, rgba(5, 5, 7, 0.25) 0%, rgba(5, 5, 7, 0.55) 100%), url('assets/brand/candy9-16.png');
    background-position: center top;
    padding: 20px 12px;
  }
}

/* Collapsible Card System (Panneau de Création / Gestion Portefeuille) */
.collapsible-card {
  transition: var(--transition-fast);
}

.collapsible-header {
  user-select: none;
  transition: opacity 0.2s ease;
}

.collapsible-header:hover {
  opacity: 0.9;
}

.btn-toggle-collapse {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--panel-border);
  color: var(--gold-light);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, border-color 0.2s;
  font-size: 11px;
}

.btn-toggle-collapse:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-solid);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.collapsible-card.collapsed .btn-toggle-collapse {
  transform: rotate(-90deg);
}

.collapsible-card.collapsed .collapsible-content {
  display: none !important;
}

/* Transaction History Window Styling */
.tx-filters-container .tx-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tx-filters-container .tx-filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.tx-filters-container .tx-filter-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-solid);
  color: var(--gold-light);
  font-weight: 600;
}

.tx-history-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tx-history-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.tx-history-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tx-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.tx-type-send { background: rgba(255, 61, 0, 0.15); border: 1px solid rgba(255, 61, 0, 0.3); color: #ff6b4a; }
.tx-type-receive { background: rgba(0, 230, 118, 0.15); border: 1px solid rgba(0, 230, 118, 0.3); color: #00e676; }
.tx-type-swap { background: rgba(0, 242, 254, 0.15); border: 1px solid rgba(0, 242, 254, 0.3); color: #00f2fe; }
.tx-type-buy { background: rgba(176, 102, 255, 0.15); border: 1px solid rgba(176, 102, 255, 0.3); color: #c88bff; }
.tx-type-vault { background: rgba(212, 175, 55, 0.15); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--gold-light); }

.tx-amount-plus { color: #00e676; font-weight: 600; }
.tx-amount-minus { color: #ff6b4a; font-weight: 600; }

.tx-hash-code {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-gold);
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(212,175,55,0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tx-hash-code:hover {
  border-color: var(--gold-solid);
  color: #ffffff;
}

/* Wallet Sections Container & Mobile 9:16 Responsive Order */
.wallet-sections-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.wallet-card-assets { order: 1; }
.wallet-card-history { order: 2; }
.wallet-card-manage { order: 3; }


