/* 1uptrade.xyz refreshed UI */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --page-bg: #f8fafc;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: rgba(226, 232, 240, 0.8);
  --border-strong: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --radius-lg: 20px;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #0891b2;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --content-max: 1200px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text);
  font-family: 'Manrope', 'Inter', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px at 8% -10%, rgba(37, 99, 235, 0.03), transparent 40%),
    radial-gradient(900px at 92% 12%, rgba(8, 145, 178, 0.02), transparent 42%);
  opacity: 1;
  z-index: -1;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small-text { font-size: 0.9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--muted); margin: 0 0 4px; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 12px; }
.brand-mark { display: flex; gap: 12px; align-items: center; }
.brand-icon, .icon-sm { width: 20px; height: 20px; }
.pill-icon { width: 18px; height: 18px; }
.label-icon { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.prose p { margin: 0 0 0.8rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }

button { font: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-block: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(37,99,235,0.05), rgba(8,145,178,0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover { 
  border-color: var(--primary); 
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn:hover::after { opacity: 1; }
.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}
.btn.primary:hover { 
  background: linear-gradient(135deg, var(--primary-strong) 0%, #1e40af 100%);
  border-color: var(--primary-strong); 
  color: #fff;
  transform: translateY(-2px);
}
.btn.ghost { 
  background: transparent; 
  border-color: var(--border); 
  color: var(--text);
}
.btn.ghost:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Button Icons */
.btn-icon {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn.primary .btn-icon {
  filter: brightness(0) invert(1);
}

.btn:hover .btn-icon.primary {
  transform: scale(1.1);
}
.btn.small { padding: 5px 8px; font-size: 0.9rem; border-radius: 999px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.btn-icon { width: 14px; height: 14px; }
.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 50%;
}
.icon-btn:hover { color: var(--primary); background: var(--panel-alt); }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--text); }
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  transition: all 0.3s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}
textarea { resize: vertical; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 4px; }

.tabs {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--panel-alt);
  border: 5px solid var(--border);
  border-radius: var(--radius);
}
.tab-button {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.tab-button.active {
  background: var(--panel);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel.hidden { display: none !important; }
.auth-card .tab-panel.is-active { display: grid; gap: 12px; }

.inline-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
  color: var(--text);
}
.inline-notice.warning { border-color: rgba(245, 158, 11, 0.3); background: #fff8eb; }
.notice-icon { width: 18px; height: 18px; margin-top: 2px; }
.notice-title { margin: 0; font-weight: 700; }
.notice-text { margin: 2px 0 0; color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: capitalize;
}
.badge-ok { background: rgba(22, 163, 74, 0.1); color: var(--success); }

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px;
}
.window {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.window.soft { 
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}
.title-bar > .title-bar-text,
.title-bar > .overview-connection {
  flex: 1 1 0;
}
.title-bar-text { 
  font-weight: 700; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: var(--text);
}
.title-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.8;
}
.window-body { padding: 14px; }

.dashboard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}
.dashboard-pane { border-radius: var(--radius-lg); }
.dashboard-pane:not(.active-pane):not([data-fixed-pane="true"]) { display: none; }

.auth-page { display: flex; align-items: center; justify-content: center; }
.auth-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--content-max);
  width: 100%;
  padding: clamp(16px, 4vw, 40px);
}
.auth-summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.summary-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.login-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--muted);
}
.auth-tagline { margin: 4px 0 0; color: var(--muted); }
.auth-actions { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.auth-note { color: var(--muted); font-size: 0.9rem; }
.login-tips {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.login-tips li { display: flex; align-items: center; gap: 8px; }
.auth-footer-links { margin-top: 16px; color: var(--muted); }
.auth-footer-links a { color: var(--text); font-weight: 600; }

.dashboard-body {
  --page-bg: #f8fafc;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: rgba(226, 232, 240, 0.8);
  --border-strong: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text);
}
.dashboard-body::before { background: none; }
.dashboard-body .page-shell {
  max-width: 520px;
  margin: 0 auto;
  display: block;
  padding: 12px 10px 100px;
}
.dashboard-body .page-shell > * { grid-column: auto; }
.dashboard-body .desktop-nav { grid-row: auto; }
.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.nav-brand strong { font-size: 1.05rem; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.desktop-nav {
  display: none;
  position: sticky;
  top: 68px;
  align-self: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
}
.desktop-nav h4 { margin: 0 0 8px; }
.desktop-nav .nav-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.desktop-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.desktop-nav a:hover { border-color: var(--primary); color: var(--primary); }
.nav-search {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  min-width: 200px;
}
.nav-user {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,196,0,0.8), rgba(31,60,255,0.6));
  border: 1px solid var(--border);
}

.overview-hero { margin-top: 12px; }
.header-cards { width: 100%; }
.title-user { display: inline-flex; gap: 6px; align-items: center; font-size: 0.95rem; color: var(--muted); }
.email-guard { display: inline-flex; gap: 6px; align-items: center; }
.overview-connection { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.overview-connection[data-state="live"] { color: var(--success); }
.overview-connection-icon img { width: 18px; height: 18px; }
.overview-connection[data-state="live"] .overview-connection-icon {
  position: relative;
}
.overview-connection[data-state="live"] .overview-connection-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--success);
  border-radius: 50%;
  opacity: 0.6;
  animation: live-pulse 1.4s linear infinite;
}
@keyframes live-pulse {
  0% { transform: rotate(0deg) scale(0.9); opacity: 0.6; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 0.3; }
  100% { transform: rotate(360deg) scale(0.9); opacity: 0.6; }
}

.mobile-dashboard {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-name { text-transform: uppercase; font-size: 0.95rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.circle-btn:hover { transform: translateY(-2px); border-color: var(--primary); }
.circle-btn img { width: 18px; height: 18px; }
.mobile-topbar .add-home-text { display: none; }

.profile-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.avatar-block { display: flex; align-items: center; gap: 10px; }
.avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.avatar-ring img { width: 28px; height: 28px; }
.profile-text { display: grid; gap: 2px; }
.profile-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--text); }
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
  color: #ffffff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
}
.connection-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.connection-chip[data-state="live"] {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success);
  border-color: rgba(46, 204, 113, 0.5);
}
.connection-chip img { width: 18px; height: 18px; }
.connection-chip p { margin: 0; }

.wallet-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.8;
}
.wallet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 600;
}
.wallet-head-actions .icon-btn {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}

.wallet-head-actions .icon-btn:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-color: var(--primary);
}

.balance-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.wallet-dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.wallet-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 6px;
  color: var(--text);
  box-shadow: var(--shadow);
}
.wallet-box .wallet-amount { font-weight: 800; font-size: 1.4rem; }
.wallet-box .label { color: var(--muted); font-weight: 700; }

/* Wallet Overview Grid - Professional Design */
.wallet-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

@media (min-width: 768px) {
  .wallet-overview-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .wallet-stat.highlight {
    grid-column: span 2;
  }
}

.wallet-stat {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wallet-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallet-stat:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.wallet-stat:hover::before {
  opacity: 1;
}

.wallet-stat.highlight {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 
    0 20px 25px -5px rgba(37, 99, 235, 0.25),
    0 10px 10px -5px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wallet-stat.highlight::before {
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  opacity: 1;
}

.wallet-label {
  color: #64748b;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Icons before labels */
.wallet-stat[data-icon="profit"] .wallet-label::before { content: "↑"; color: #059669; }
.wallet-stat[data-icon="referral"] .wallet-label::before { content: "👥"; color: #0891b2; }
.wallet-stat[data-icon="balance"] .wallet-label::before { content: "💰"; color: #2563eb; }
.wallet-stat[data-icon="hold"] .wallet-label::before { content: "🔒"; color: #d97706; }
.wallet-stat[data-icon="pending"] .wallet-label::before { content: "⏳"; color: #ca8a04; }
.wallet-stat[data-icon="staked"] .wallet-label::before { content: "📈"; color: #7c3aed; }
.wallet-stat[data-icon="deposit"] .wallet-label::before { content: "📥"; color: #64748b; }
.wallet-stat[data-icon="withdraw"] .wallet-label::before { content: "📤"; color: #64748b; }
.wallet-stat[data-icon="total"] .wallet-label::before { content: "💎"; color: #ffffff; }

.wallet-value {
  color: #1e293b;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  font-feature-settings: "tnum";
  position: relative;
}

.wallet-value.dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  align-items: start;
}

.wallet-value.dual .wallet-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-value.dual .small-label {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.wallet-value small {
  font-size: 0.7em;
  opacity: 0.7;
  font-weight: 500;
}

.wallet-stat.highlight .wallet-label {
  color: rgba(255, 255, 255, 0.9);
}

.wallet-stat.highlight .wallet-value {
  color: #ffffff;
  font-size: 1.5rem;
}

/* Color-coded wallet values */
.wallet-value.profit { color: #059669; }
.wallet-value.referral { color: #0891b2; }
.wallet-value.balance { color: #2563eb; }
.wallet-value.hold { color: #d97706; }
.wallet-value.pending { color: #ca8a04; }
.wallet-value.staked { color: #7c3aed; }
.wallet-value.total { 
  color: #ffffff; 
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-dashboard .wallet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.mobile-dashboard .wallet-actions button {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-dashboard .wallet-actions button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(8, 145, 178, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-dashboard .wallet-actions button:hover { 
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mobile-dashboard .wallet-actions button:hover::before {
  opacity: 1;
}
.wallet-action-icon img { width: 28px; height: 28px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.stat-card strong { 
  color: var(--text); 
  font-size: 1.15rem; 
  font-weight: 700;
}
.stat-card:nth-child(1) strong { color: var(--danger); }
.stat-card:nth-child(2) strong { color: var(--success); }
.stat-card:nth-child(3) strong { color: var(--primary); }
.stat-card:nth-child(4) strong { color: var(--accent); }
.stat-card.full { 
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
}
.stat-card.full strong { color: #ffffff; }

.account-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.account-chips .chip {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.account-chips .chip strong { 
  color: var(--text); 
  font-size: 1.05rem; 
  font-weight: 700;
}

.wallet-tabs.quick-nav {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.wallet-tabs.quick-nav button {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.wallet-tabs.quick-nav button:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.wallet-tabs.quick-nav button.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.wallet-tabs.quick-nav img { 
  width: 18px; 
  height: 18px; 
  transition: all 0.3s ease;
}

.wallet-tabs.quick-nav button:hover img {
  transform: scale(1.1);
}

.wallet-tabs.quick-nav button.active img {
  transform: scale(1.15);
}

.wallet-band { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.wallet-switch { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wallet-switch button,
.wallet-tabs button {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 8px 10px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  text-align: center;
}
.wallet-switch button.active,
.wallet-tabs button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef2ff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
}
.wallet-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 25px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}
.wallet-total { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wallet-value { font-size: 1.4rem; font-weight: 800; }
.wallet-pnl strong { transition: color 0.15s ease; }
.wallet-pnl.profit strong { color: var(--success); }
.wallet-pnl.loss strong { color: var(--danger); }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 1px; justify-content: center; }
.wallet-action {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  min-width: 108px;
  min-height: 82px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
}
.wallet-action-icon {
  width: 19px;
  height: 15px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
}
.wallet-action.primary { border-color: var(--primary); color: var(--primary); }
.wallet-action img { width: 18px; height: 18px; }
.wallet-action-label { font-size: 0.85rem; }
.wallet-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; justify-content: center; }
.wallet-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; min-width: 86px; min-height: 70px; border-radius: 18px; }
.wallet-tabs .tab-icon img { width: 35px; height: 20px; }
.wallet-tabs .tab-label { font-size: 0.85rem; }
.wallet-accounts {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--panel);
}
.wallet-account-head { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.wallet-account-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.wallet-account-list li {
  display: flex;
  justify-content: space-between;
  background: var(--panel-alt);
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.main-area { grid-column: 1 / -1; }
.assets-body { display: grid; gap: 12px; }
.assets-header { display: flex; align-items: center; justify-content: space-between; }
.assets-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.assets-actions { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  gap: 10px; 
}

.assets-action {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.assets-action::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(8, 145, 178, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.assets-action:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.assets-action:hover::before {
  opacity: 1;
}

.assets-action img { 
  width: 24px; 
  height: 24px; 
  transition: all 0.3s ease;
}

.assets-action:hover img {
  transform: scale(1.1);
}
.assets-account-card {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
.assets-bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.assets-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}
.assets-bottom-nav a.active { border-color: var(--primary); color: var(--primary); }
.add-home-btn .add-home-icon { display: none; }

.market-grid { 
  display: grid; 
  gap: 12px; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

@media (max-width: 768px) {
  .market-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.market-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow);
  min-height: 80px;
  transition: all 0.3s ease;
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.market-card img { 
  width: 32px; 
  height: 32px; 
  object-fit: contain; 
  border-radius: 8px;
}
.market-meta strong { font-size: 1rem; }
.market-meta small { color: var(--muted); }
.market-stats { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.price { font-weight: 800; color: var(--text); }
.change { font-weight: 700; }
.change-up { color: var(--success); }
.change-down { color: var(--danger); }

.terminal { display: grid; gap: 12px; }
.trade-note { padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--panel-alt); color: var(--muted); }
.candle-view, .trade-schedule {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.05);
}
.trade-window-label { color: var(--muted); font-weight: 600; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.table th { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.trade-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Trade Button Styles */
.trade-btn {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.trade-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(8, 145, 178, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trade-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.trade-btn:hover::before {
  opacity: 1;
}

.trade-btn.responsive {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.trade-btn .btn-icon {
  transition: all 0.3s ease;
}

.trade-btn:hover .btn-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .trade-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}
.trade-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.trade-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.trade-card .trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.trade-card .trade-row:first-of-type { border-top: 0; padding-top: 0; }
.trade-card .trade-row strong { font-weight: 800; }
.trade-card .meta { display: grid; gap: 4px; color: var(--muted); font-size: 0.95rem; }
.trade-card .amount { font-weight: 800; }
.trade-card.trade-profit {
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.12);
}
.trade-card.trade-loss {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.12);
}
.trade-card.trade-pending {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}
.trade-card.trade-pending .trade-timer { color: var(--primary); font-variant-numeric: tabular-nums; }
.activity-cards #tbl-activity {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.activity-cards #tbl-activity tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.activity-cards #tbl-activity td {
  border: none;
  padding: 0;
  color: var(--text);
}
.activity-cards #tbl-activity tr td:first-child { font-weight: 700; }

/* Professional Activity Cards */
.activity-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.activity-card:hover::before {
  opacity: 1;
}

.activity-card.profit {
  border-left: 4px solid var(--success);
}

.activity-card.profit::before {
  background: var(--success);
}

.activity-card.rejected {
  border-left: 4px solid var(--danger);
}

.activity-card.rejected::before {
  background: var(--danger);
}

.activity-card.completed {
  border-left: 4px solid var(--success);
}

.activity-card.completed::before {
  background: var(--success);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.activity-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--panel-alt);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.activity-type.profit {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.05));
  color: var(--success);
}

.activity-type.rejected {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
  color: var(--danger);
}

.activity-type.completed {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.05));
  color: var(--success);
}

.activity-timestamp {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.activity-message {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.activity-note {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.activity-amount {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.activity-amount.profit {
  color: var(--success);
}

.activity-amount.rejected {
  color: var(--danger);
}

.activity-amount.completed {
  color: var(--text);
}

@media (max-width: 768px) {
  .activity-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .activity-card {
    padding: 16px;
  }
}

.window.soft.collapsible .title-bar { cursor: pointer; }
.window.soft.collapsible.collapsed .window-body { display: none; }

.notice-banner .banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
}
.notice-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.coin-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-alt);
}
.contact-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.contact-msg { margin: 8px 0; color: var(--text); }
.contact-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.referral-share { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.referral-share-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  display: grid;
  gap: 6px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}
.referral-link-row { display: flex; gap: 8px; }
.referral-link-row input { flex: 1; }
.referral-stats-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ref-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-alt);
}
.referral-levels { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ref-level-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
.ref-level-card.unlocked { border-color: var(--success); box-shadow: 0 8px 16px rgba(22, 163, 74, 0.12); }
.ref-level-head { font-weight: 800; margin-bottom: 6px; }
.ref-level-body { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.referral-data-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  margin-top: 10px;
}

/* Wallet chain icon (deposit wallets) */
.wallet-chain-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.wallet-chain-icon img {
  max-width: 65px;
  max-height: 65px;
}

.staking-section { display: grid; gap: 14px; }
.staking-calculator {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  display: grid;
  gap: 12px;
}
.staking-calculator-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.staking-calc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.staking-calc-results { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.calc-result {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--panel-alt);
}
.staking-plan-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.staking-plan-grid > div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.05);
}
.staking-plan-grid > div header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steps-list { margin: 8px 0 0; padding-left: 1.2rem; color: var(--muted); }

.footer {
  max-width: var(--content-max);
  margin: 24px auto;
  padding: 16px;
  text-align: center;
  color: var(--muted);
}
.footer a { color: var(--text); font-weight: 600; margin: 0 6px; }
.footer-social img { width: 18px; height: 18px; }

.page-header {
  max-width: var(--content-max);
  margin: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border);
  padding: 10px 8px 14px;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}
.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.mobile-nav a:hover { 
  border-color: var(--primary); 
  color: var(--primary);
  transform: translateY(-1px);
}
.mobile-spacer { height: 70px; }

.mobile-nav + .mobile-spacer { height: 72px; }
.mobile-nav a span { font-size: 0.8rem; }
.mobile-nav a img { 
  width: 18px; 
  height: 18px; 
  transition: all 0.3s ease;
}

.mobile-nav a:hover img {
  transform: scale(1.1);
}

.mobile-nav a.active img {
  transform: scale(1.15);
}
.mobile-nav a { padding: 10px 4px; }

.mobile-spacer { height: 88px; }
.mobile-nav + .mobile-spacer { height: 94px; }

.fab-trade {
  position: fixed;
  right: 16px;
  bottom: 90px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
}

.toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}
.toast {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--text);
}
.toast.success { border-color: rgba(22, 163, 74, 0.4); color: var(--success); }
.toast.error { border-color: rgba(220, 38, 38, 0.4); color: var(--danger); }
.toast.info { border-color: rgba(14, 165, 233, 0.4); color: #075985; }

.error-alerts {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2100;
  max-width: 360px;
}
.error-alert {
  position: relative;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.alert-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.1));
  opacity: 0.25;
  pointer-events: none;
}
.error-alert strong { display: block; margin-bottom: 4px; }
.error-alert p { margin: 0; color: var(--muted); }
.error-alert .alert-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.error-alert .alert-action {
  margin-top: 8px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}
.tone-warning { border-color: rgba(245, 158, 11, 0.5) !important; }
.tone-danger { border-color: rgba(220, 38, 38, 0.5) !important; }

@media (min-width: 900px) {
  .mobile-nav, .mobile-spacer { display: none; }
  .desktop-nav { display: block; }
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .wallet-band { grid-template-columns: 1fr; }
  .assets-actions, .wallet-actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .title-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dashboard-nav { position: sticky; top: 0; }
  .admin-scaffold { display: flex; flex-direction: column; }
  .admin-sidebar { display: none; }
  .admin-panels { grid-template-columns: 1fr; }
  .user-layout { grid-template-columns: 1fr; }
  .page-shell { grid-template-columns: 1fr; }
  .page-shell > * { grid-column: auto; }
  .dashboard-body .page-shell { grid-template-columns: 1fr; }
  .dashboard-body .page-shell > * { grid-column: auto; }
}


.win98, .admin-shell { background: var(--page-bg); color: var(--text); }
.win98-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.win98-toolbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }

.admin-scaffold {
  max-width: 1240px;
  width: 100%;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 28px;
}
.admin-sidebar { display: none; }
.sidebar-section { margin-bottom: 14px; }
.sidebar-label { margin: 0 0 6px; color: var(--muted); font-weight: 700; }
.sidebar-pills, .sidebar-list { display: grid; gap: 8px; }
.sidebar-link {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}
.sidebar-link:hover { border-color: var(--primary); color: var(--primary); }
.admin-content { display: grid; gap: 10px; }
.admin-panels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
}
.admin-card h3 { margin: 0 0 8px; }
.admin-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.admin-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.04);
}
.admin-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.admin-login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
/* Admin forms: keep every setting on its own row for clarity */
.admin-shell .form-grid {
  grid-template-columns: 1fr;
}
.admin-shell .form-grid > * {
  grid-column: 1 / -1;
}
.admin-shell .form-grid .form-actions {
  justify-content: flex-start;
}
/* Admin panels: one card per row */
.admin-shell .admin-grid {
  grid-template-columns: 1fr;
}
.admin-shell .user-layout {
  grid-template-columns: 1fr;
}
.admin-shell .user-card-list,
.admin-shell .overview-metrics,
.admin-shell .user-buckets,
.admin-shell .pending-grid {
  grid-template-columns: 1fr;
}
.auth-hero ul { padding-left: 1.2rem; margin: 8px 0 0; color: var(--muted); }
.auth-hero .hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; color: var(--muted); }
.admin-main { display: flex; flex-direction: column; gap: 16px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 4px; }
.admin-grid { display: flex; flex-direction: column; gap: 10px; }
.admin-main, .admin-grid, .admin-content { max-width: none; }
.pending-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pending-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}
.pending-card.soft { background: var(--panel-alt); }
.pending-label { color: var(--muted); font-weight: 600; }
.pending-value { font-weight: 800; font-size: 1.4rem; }
.overview-metrics, .user-buckets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.metric-card, .bucket-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}
.bucket-card.full { grid-column: 1 / -1; }
.bucket-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bucket-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-user-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { color: var(--muted); font-weight: 700; }
.user-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.user-card-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.user-card-list .card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 12px; box-shadow: 0 6px 14px rgba(15,23,42,0.05); }
.user-editor { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--panel-alt); box-shadow: inset 0 0 0 1px rgba(37,99,235,0.04); }
.admin-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-grid { display: flex; flex-direction: column; gap: 10px; }

/* Force single-column stacking for all admin grids/cards */
.admin-shell .admin-grid,
.admin-shell .user-card-list,
.admin-shell .user-layout,
.admin-shell .overview-metrics,
.admin-shell .user-buckets,
.admin-shell .pending-grid {
  grid-template-columns: 1fr !important;
}

/* New admin stack layout */
.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.admin-group {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.group-head h3 { margin: 2px 0; }
.group-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-group .window {
  box-shadow: none;
  border: 1px solid var(--border);
}
.admin-group .window + .window { margin-top: 8px; }
/* Hard-disable the old User Card List section if cached */
#user-cards-section { display: none !important; }

/* User cards styling */
.user-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 6px 14px rgba(15,23,42,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.user-card header strong { display: block; }
.user-card .user-meta-row,
.user-card .user-balances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.user-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.user-card-actions .btn {
  flex: 1 1 160px;
  justify-content: center;
}

/* Audit layout - tighter card grid */
.audit-panel {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
}
.audit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.audit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 12px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 8px;
}
.audit-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.audit-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.audit-summary div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--panel-alt);
  text-align: center;
}
.audit-summary small { color: var(--muted); font-weight: 700; display: block; margin-bottom: 4px; }
.audit-summary strong { font-size: 1.1rem; }
.audit-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}
.audit-list article,
.audit-list div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.audit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.audit-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.audit-item strong {
  font-weight: 800;
}
.audit-item .muted {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}
.audit-item .btn {
  padding: 6px 10px;
  box-shadow: none;
}
.audit-list .muted { color: var(--muted); }
.audit-card table {
  width: 100%;
  border-collapse: collapse;
}
.audit-card td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
}
.audit-card td:last-child { text-align: right; font-weight: 700; }
.audit-card td small { color: var(--muted); display: block; }
