/* ── MemeTrader - Cyberpunk Edgy Theme ── */
:root {
  --bg-primary: #0a0410;
  --bg-secondary: rgba(18, 5, 27, 0.6);
  --bg-card: rgba(26, 16, 46, 0.4);
  --bg-card-hover: rgba(124, 92, 252, 0.1);
  --bg-input: rgba(10, 4, 16, 0.8);
  --border: rgba(124, 92, 252, 0.3);
  --border-hover: rgba(184, 255, 61, 0.6);
  --text-primary: #f0ebf5;
  --text-secondary: #a395b5;
  --text-muted: #72628a;
  --accent: #7c5cfc;
  --accent-hover: #9c83ff;
  --green: #b8ff3d;
  --green-dim: rgba(184, 255, 61, 0.15);
  --red: #ff0055;
  --red-dim: rgba(255, 0, 85, 0.15);
  --gold: #8bc34a;
  --blue: #38bdf8;
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
  --glow: none;
  --sidebar-w: 240px;
  --font: 'Rajdhani', sans-serif;
  --display-font: 'Orbitron', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { 
  font-family: var(--font); 
  background-color: var(--bg-primary); 
  color: var(--text-primary); 
  line-height: 1.6; 
  min-height: 100vh; 
  overflow-x: hidden; 
  font-weight: 500;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--display-font); font-weight: 700; letter-spacing: 1px; }

/* Background animation removed */
/* Removed noise-overlay for performance */

/* ── Utilities ── */
.text-green { color: var(--green) !important; text-shadow: 0 0 8px var(--green-dim); }
.text-red { color: var(--red) !important; text-shadow: 0 0 8px var(--red-dim); }
.text-accent { color: var(--accent) !important; text-shadow: 0 0 8px rgba(124, 92, 252, 0.3); }
.text-muted { color: var(--text-muted) !important; }
.text-gold { color: var(--gold) !important; text-shadow: 0 0 10px rgba(184, 255, 61, 0.4); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-mono { font-family: var(--mono); letter-spacing: -0.5px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grow { flex-grow: 1; }

/* ── Animations ── */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(124, 92, 252, 0.2); }
  50% { box-shadow: 0 0 20px rgba(124, 92, 252, 0.5), inset 0 0 10px rgba(124, 92, 252, 0.2); }
  100% { box-shadow: 0 0 10px rgba(124, 92, 252, 0.2); }
}

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

.animate-in {
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Layout ── */
.app-layout { display: flex; min-height: 100vh; flex-direction: column; }
.auth-layout { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: var(--bg-primary); background-image: radial-gradient(ellipse at 20% 50%, rgba(124,92,252,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(184,255,61,0.06) 0%, transparent 50%); }

/* ── Top Navigation ── */
.logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display-font); }
.logo-icon { font-size: 26px; filter: drop-shadow(0 0 8px var(--accent)); }
.logo-text { font-size: 20px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.logo-image { height: 60px; width: auto; max-width: 200px; object-fit: contain; filter: drop-shadow(0 0 8px var(--accent)); }
.logo-image-dashboard { height: 140px; width: auto; max-width: 450px; object-fit: contain; filter: drop-shadow(0 0 15px rgba(0,0,0,0.8)); }

.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 24px; border-radius: 4px; color: var(--text-secondary); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-weight: 600; font-size: 14px; position: relative; overflow: hidden; white-space: nowrap; flex-shrink: 0; }
.nav-item::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s ease; transform-origin: center; }
.nav-item:hover { background: rgba(124,92,252,0.1); color: var(--text-primary); }
.nav-item:hover::before { transform: scaleX(0.5); }
.nav-item.active { color: var(--green); font-weight: 700; border-bottom: 3px solid var(--green); border-left: none; background: transparent !important; }
.nav-item.active::before { display: none; }
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.nav-admin { color: var(--gold) !important; }
.header-stats { display: flex; align-items: center; gap: 20px; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; background: transparent !important; border: none; display: flex; align-items: center; justify-content: center; font-family: var(--display-font); font-weight: 800; font-size: 14px; color: var(--text-primary); flex-shrink: 0; overflow: hidden; transition: all 0.3s; margin: 0 8px; }
/* .user-avatar:hover background removed */
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.logout-btn-header { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 0; color: var(--text-muted); transition: all 0.3s; font-size: 16px; border: none !important; margin: 0 8px; }
.logout-btn-header:hover { color: var(--red); background: var(--red-dim); }

/* Profile Dropdown Menu */
.profile-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  min-width: 220px;
  background: rgba(6, 4, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), 0 8px 32px rgba(124, 92, 252, 0.15);
  backdrop-filter: saturate(200%) blur(60px);
  -webkit-backdrop-filter: saturate(200%) blur(60px);
  background-clip: padding-box;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(124, 92, 252, 0.1);
  color: var(--accent);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.dropdown-item-danger {
  color: var(--red);
}

.dropdown-item-danger:hover {
  background: rgba(255, 0, 85, 0.1);
  color: var(--red);
}

/* ── Main Content ── */
.main-content { flex: 1; display: flex; flex-direction: column; }
.top-bar { 
  display: flex !important; 
  align-items: center !important; 
  justify-content: space-between !important; 
  padding: 0 !important;
  height: 70px !important;
  min-height: 70px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
  background: #0a0410 !important;
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 60px;
}

.top-bar-logo {
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-width: 220px;
}

.top-bar-logo img {
  height: 65px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(124, 92, 252, 0.4));
}

.top-bar-logo a:hover img {
  transform: scale(1.05);
}

.top-nav { 
  display: flex !important; 
  flex-direction: row !important; 
  gap: 8px; 
  margin: 0; 
  overflow-x: auto; 
  align-items: center; 
  justify-content: center;
  flex: 1; 
}

@media (max-width: 1200px) {
  .top-bar-logo { width: 120px; }
  .top-bar-logo img { height: 32px; }
}

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

.top-nav {
  flex: 1;
  display: flex !important;
  justify-content: center;
  margin: 0 !important;
}

.top-bar-right {
  flex: 0 0 auto;
  display: flex !important;
  align-items: center;
  gap: 16px;
}
.sidebar-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }
.top-bar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.balance-display, .points-display { display: flex; align-items: center; gap: 12px; padding: 10px 28px; border-radius: 0; font-weight: 700; font-size: 14px; font-family: var(--mono); border: none !important; transition: all 0.3s ease; background: transparent !important; }
.balance-display { color: var(--green); }
.balance-display i { font-size: 12px; opacity: 0.8; }
/* .balance-display:hover removed */
.points-display { color: var(--blue); }
.points-display i { font-size: 12px; opacity: 0.8; }
/* .points-display:hover removed */
.content-area { padding: 32px; max-width: 1400px; margin: 0 auto; width: 100%; flex-grow: 1; }

.claim-account-btn { border-radius: 18px !important; padding: 8px 24px !important; background: #7c5cfc !important; color: #fff !important; border: none !important; box-shadow: none !important; font-size: 13px !important; height: 36px; display: flex; align-items: center; justify-content: center; }
.claim-account-btn:hover { background: #9c83ff !important; transform: none !important; }
.claim-account-btn i { font-size: 14px; margin-right: 6px; }

/* ── Cards ── */
.card { background: rgba(18, 5, 27, 0.85); border: none; border-radius: 0; padding: 24px; box-shadow: none; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; animation: slideUpFade 0.6s ease forwards; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
/* Hover effects for cards removed as requested for non-clickable elements */
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-header h2, .card-header h3 { font-size: 18px; font-weight: 700; color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.stat-card { 
  text-align: center; 
  padding: 24px 16px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.stat-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px var(--accent));
}
.stat-value { 
  font-size: clamp(22px, 2.5vw, 32px); 
  font-weight: 900; 
  font-family: var(--display-font); 
  margin: 6px 0; 
  text-shadow: 0 0 15px rgba(255,255,255,0.1);
  white-space: nowrap;
  width: 100%;
  overflow: visible;
}
.stat-label { 
  font-size: 11px; 
  color: var(--text-muted); 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
  font-weight: 700; 
}

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700; font-family: var(--display-font); text-transform: uppercase; letter-spacing: 1px; border: 1px solid transparent; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-size: 14px; position: relative; overflow: hidden; z-index: 1; }
.btn::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent); transform: translateX(-100%); transition: transform 0.5s; z-index: -1; }
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 15px rgba(124,92,252,0.3); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(124,92,252,0.5); }
.btn-green { background: var(--green); color: #0a0410; box-shadow: 0 4px 15px rgba(184,255,61,0.3); }
.btn-green:hover { background: #ccff6b; box-shadow: 0 6px 20px rgba(184,255,61,0.6); color: #000; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 15px rgba(255,0,85,0.3); }
.btn-red:hover { background: #ff3377; box-shadow: 0 6px 20px rgba(255,0,85,0.5); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); backdrop-filter: blur(4px); }
.btn-outline:hover { border-color: var(--accent); color: var(--green); background: rgba(124,92,252,0.1); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(1); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--display-font); }
.form-control { width: 100%; padding: 14px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); transition: all 0.3s; outline: none; font-size: 15px; font-family: var(--mono); }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(184,255,61,0.2), 0 0 15px rgba(184,255,61,0.1); background: rgba(18,5,27,0.8); }
.form-control::placeholder { color: var(--text-muted); font-family: var(--font); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.input-group { display: flex; gap: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border-radius: var(--radius-sm); }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.form-error { color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 600; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 20px 28px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
/* Numeric columns - reduce container padding */
td.text-mono { padding: 20px 16px; }
th:nth-child(3), th:nth-child(4), th:nth-child(5), th:nth-child(6), th:nth-child(7), th:nth-child(8),
td:nth-child(3), td:nth-child(4), td:nth-child(5), td:nth-child(6), td:nth-child(7), td:nth-child(8) {
  padding: 20px 20px;
}
th { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); font-weight: 700; font-family: var(--display-font); background: rgba(0,0,0,0.2); }
tr:last-child td { border-bottom: none; }
/* tr:hover td removed */

/* Trade row gradients */
.trade-row-buy td {
  background: linear-gradient(90deg, transparent 0%, rgba(184, 255, 61, 0.05) 40%, rgba(184, 255, 61, 0.15) 100%);
  border-bottom: 1px solid rgba(184, 255, 61, 0.1);
}
/* .trade-row-buy:hover removed */

.trade-row-sell td {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 85, 0.05) 40%, rgba(255, 0, 85, 0.15) 100%);
  border-bottom: 1px solid rgba(255, 0, 85, 0.1);
}
/* .trade-row-sell:hover removed */
.trade-token-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trade-token-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 10px rgba(124,92,252,0.18); }
.token-logo-fallback { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display-font); font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--accent), var(--green)); }
.trade-token-logo + .token-logo-fallback { display: none; }

/* ── Auth Forms ── */
.auth-layout { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; position: relative; }
.auth-card { width: 100%; max-width: 440px; background: rgba(18, 5, 27, 0.95); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); position: relative; z-index: 10; animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px; background: url('../header_background2.png') center/cover; border-radius: var(--radius) var(--radius) 0 0; z-index: -2; }
.auth-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px; background: linear-gradient(to bottom, rgba(18, 5, 27, 0) 0%, rgba(18, 5, 27, 0.3) 50%, rgba(18, 5, 27, 0.95) 100%); border-radius: var(--radius) var(--radius) 0 0; z-index: -1; }
.auth-card .logo { justify-content: center; margin-bottom: 16px; font-size: 32px; font-family: var(--display-font); text-transform: uppercase; letter-spacing: 2px; }
.auth-card h1 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; font-size: 15px; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.alert-error { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,0,85,0.4); box-shadow: 0 0 15px rgba(255,0,85,0.1); }
.alert-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(184,255,61,0.4); box-shadow: 0 0 15px rgba(184,255,61,0.1); }

/* ── Page Headers ── */
.page-header { 
  margin-bottom: 32px; 
  padding: 40px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(10, 4, 16, 0.8) 0%, rgba(124, 92, 252, 0.1) 100%), url('../header_background.png');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.5s ease; 
}
.page-header h1 { font-size: 36px; font-weight: 900; margin-bottom: 8px; font-family: var(--display-font); text-transform: uppercase; letter-spacing: 2px; background: linear-gradient(90deg, #fff, var(--accent)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-header p { color: var(--text-muted); font-size: 16px; font-weight: 500; }

/* ── Trading page ── */
.trade-discovery-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top;
}

.trade-discovery-grid.collapsed {
  opacity: 0;
  transform: scaleY(0);
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.trade-discovery-grid.expanding {
  opacity: 1;
  transform: scaleY(1);
  max-height: 500px;
}
.trade-mini-card { padding-top: 20px; }
.trade-mini-meta { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--display-font); }
.token-mini-list { display: grid; gap: 10px; }
.token-mini-item { width: 100%; border: none; border-radius: 0; background: linear-gradient(180deg, rgba(20,8,30,0.9), rgba(12,4,18,0.95)); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--text-primary); cursor: pointer; transition: all 0.25s ease; text-align: left; }
.token-mini-item:hover { border: none; transform: none; box-shadow: none; }
.token-mini-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.token-mini-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.token-mini-logo-placeholder { box-shadow: inset 0 0 0 1px rgba(124,92,252,0.25); }
.token-mini-symbol { font-family: var(--display-font); font-size: 14px; color: #fff; }
.token-mini-name { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.token-mini-side { text-align: right; flex-shrink: 0; }
.token-mini-value { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.token-mini-subtext { font-size: 11px; color: var(--text-muted); }
.trade-mini-empty { padding: 18px 12px; }
.trade-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; animation: slideUpFade 0.6s ease 0.1s both; }
.chart-container { background: rgba(10,4,16,0.9); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 500px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.chart-container iframe { width: 100%; height: 550px; border: none; }
.token-search { position: relative; }
.token-info-bar { display: flex; align-items: center; gap: 24px; padding: 20px 24px; background: rgba(18, 5, 27, 0.9); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; flex-wrap: wrap; box-shadow: 0 4px 15px rgba(0,0,0,0.5); border-left: 4px solid var(--green); }
.token-logo { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-input); border: 2px solid var(--border); box-shadow: 0 0 15px rgba(124,92,252,0.3); }
.token-name-group h2 { font-size: 22px; font-weight: 900; font-family: var(--display-font); margin-bottom: -4px; }
.token-name-group span { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.token-price-big { font-size: 28px; font-weight: 900; font-family: var(--mono); text-shadow: 0 0 15px rgba(184,255,61,0.3); }
.token-stat { text-align: center; padding: 0 16px; border-left: 1px solid rgba(255,255,255,0.1); }
.token-stat .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.token-stat .value { font-size: 16px; font-weight: 700; font-family: var(--mono); color: var(--text-primary); }
.trade-panel .card { position: sticky; top: 100px; border-top: none; }
.trade-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: rgba(0,0,0,0.3); padding: 6px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); }
.trade-tab { flex: 1; padding: 12px; text-align: center; font-weight: 700; font-family: var(--display-font); text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s; background: transparent; border: none; color: var(--text-muted); border-radius: 4px; }
.trade-tab.active-buy { background: var(--green-dim); color: var(--green); box-shadow: 0 0 15px rgba(184,255,61,0.2); }
.trade-tab.active-sell { background: var(--red-dim); color: var(--red); box-shadow: 0 0 15px rgba(255,0,85,0.2); }
.trade-summary { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; font-family: var(--mono); font-size: 14px; }
.trade-summary-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.trade-summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 15px; margin-top: 4px; }
.trade-summary-row .label { color: var(--text-secondary); font-family: var(--font); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; font-weight: 700; }
.holding-info { background: linear-gradient(135deg, rgba(124,92,252,0.1), rgba(184,255,61,0.05)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; font-family: var(--mono); font-size: 14px; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }

/* ── Portfolio ── */
.portfolio-item { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 24px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.3s; }
/* .portfolio-item:hover removed */
.portfolio-item:last-child { border-bottom: none; }
.portfolio-token-logo { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-input); object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
.portfolio-token-name { font-weight: 700; font-size: 16px; font-family: var(--display-font); }
.portfolio-token-symbol { font-size: 13px; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; }
.portfolio-value { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 16px; }
.portfolio-pnl { text-align: right; font-family: var(--mono); font-weight: 700; font-size: 15px; }

/* ── Leaderboard ── */
.rank-cell { font-weight: 900; font-size: 20px; width: 60px; text-align: center; font-family: var(--display-font); }
.rank-1 { color: var(--gold); text-shadow: 0 0 15px rgba(207,184,163,0.5); font-size: 24px; }
.rank-2 { color: #e2e8f0; text-shadow: 0 0 10px rgba(226,232,240,0.3); }
.rank-3 { color: #d97706; }
.lb-user { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 15px; }
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--green)); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; flex-shrink: 0; font-family: var(--display-font); box-shadow: 0 0 10px rgba(184,255,61,0.2); }

/* ── Profile / Investment Card ── */
.profile-header { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 32px; min-height: 166px; padding: 32px; background: linear-gradient(135deg, rgba(26,16,46,0.95), rgba(18,5,27,0.9)); background-size: cover; background-position: center; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 24px; position: relative; overflow: hidden; animation: slideUpFade 0.6s ease; }
.profile-header::after { content: ''; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.1; filter: blur(20px); pointer-events: none; }
.profile-header-cover-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: auto 175%;
  background-position: right center;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, black 0%, black 10%, transparent 35%);
  mask-image: linear-gradient(to left, black 0%, black 10%, transparent 35%);
}
.profile-avatar-wrap { position: relative; z-index: 3; flex-shrink: 0; }
.profile-avatar-lg { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--green)); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 40px; flex-shrink: 0; font-family: var(--display-font); box-shadow: 0 0 30px rgba(184,255,61,0.3); position: relative; overflow: hidden; border: 2px solid rgba(255,255,255,0.18); }
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-form input, .profile-cover-form input { display: none; }
.profile-avatar-btn, .profile-cover-btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.16); background: rgba(10,4,16,0.82); color: #fff; backdrop-filter: blur(8px); transition: all 0.25s ease; }
.profile-avatar-btn:hover, .profile-cover-btn:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 18px rgba(184,255,61,0.18); transform: translateY(-1px); }
.profile-avatar-btn { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; font-size: 14px; }
.profile-cover-form { position: absolute; top: 18px; right: 18px; z-index: 4; }
.profile-cover-btn { gap: 8px; min-height: 36px; padding: 8px 12px; border-radius: var(--radius-sm); font-family: var(--display-font); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.profile-details { position: relative; z-index: 3; min-width: 0; }
.profile-details h1 { font-size: 32px; margin-bottom: 4px; font-family: var(--display-font); text-transform: uppercase; letter-spacing: 2px; }
.profile-details p { color: var(--text-secondary); font-size: 15px; font-weight: 600; }
.profile-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.investment-card { background: linear-gradient(145deg, rgba(26,16,46,0.8), rgba(10,4,16,0.9)); border: none; border-radius: 0; padding: 32px; position: relative; overflow: hidden; box-shadow: none; animation: slideUpFade 0.7s ease 0.1s both; }
.investment-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(184,255,61,0.05) 0%, transparent 60%); pointer-events: none; }
.investment-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 3px; color: var(--green); margin-bottom: 24px; font-family: var(--display-font); display: flex; align-items: center; gap: 10px; }
.investment-card h3::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); animation: pulseGlow 2s infinite; }
.ic-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); transition: background 0.3s; }
/* .ic-row:hover removed */
.ic-row:last-child { border: none; }
.ic-label { color: var(--text-secondary); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.ic-value { font-weight: 800; font-family: var(--mono); font-size: 16px; text-shadow: 0 0 10px rgba(255,255,255,0.1); }

/* ── Badges ── */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.badge-item { display: flex; flex-direction: column; align-items: center; padding: 24px 16px; background: rgba(0,0,0,0.3); border-radius: 0; border: none; text-align: center; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; }
.badge-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(124,92,252,0.2) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s; z-index: 0; }
/* Hover effects for badges removed */
.badge-item > * { position: relative; z-index: 1; }
.badge-icon { margin-bottom: 12px; transition: transform 0.3s; }
.badge-emblem { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 22%, rgba(255,255,255,0.36), transparent 28%), linear-gradient(145deg, var(--badge-color), rgba(10,4,16,0.94)); border: 1px solid var(--badge-color); box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 0 18px rgba(255,255,255,0.12); font-size: 25px; }
.badge-emblem i { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35)); }
.badge-item:hover .badge-icon { transform: scale(1.1) rotate(5deg); }
.badge-name { font-size: 14px; font-weight: 700; font-family: var(--display-font); letter-spacing: 1px; color: var(--text-primary); }
.badge-date { font-size: 11px; color: var(--text-muted); margin-top: 6px; font-family: var(--mono); }
.badge-modal-content { text-align: center; padding: 48px; background: linear-gradient(135deg, rgba(26,16,46,0.95), rgba(10,4,16,0.98)); border: 2px solid var(--accent); box-shadow: 0 0 40px rgba(124,92,252,0.4); }
.badge-award-icon { font-size: 80px; margin-bottom: 20px; animation: badgeBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: drop-shadow(0 0 20px rgba(255,255,255,0.5)); }
@keyframes badgeBounce { 0% { transform: scale(0) rotate(-45deg); opacity: 0; } 50% { transform: scale(1.2) rotate(10deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }

/* ── Wallet ── */
.wallet-balance-card { text-align: center; padding: 50px; background: linear-gradient(135deg, rgba(184,255,61,0.08), rgba(124,92,252,0.08)); border-radius: 0; border: none; box-shadow: none; position: relative; overflow: hidden; animation: slideUpFade 0.5s ease; }
.wallet-balance-amount { font-size: 64px; font-weight: 900; font-family: var(--display-font); color: var(--green); text-shadow: 0 0 20px rgba(184,255,61,0.4); margin-bottom: 10px; }
.wallet-actions { display: flex; gap: 16px; justify-content: center; margin-top: 32px; }
.money-presets { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.money-presets button { padding: 8px 20px; border-radius: 24px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); color: var(--text-primary); cursor: pointer; font-weight: 700; font-family: var(--mono); transition: all 0.3s; }
.money-presets button:hover { border-color: var(--green); color: var(--green); background: rgba(184,255,61,0.1); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(184,255,61,0.15); }

/* ── Modals ── */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 500px; width: 90%; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal h2 { margin-bottom: 24px; font-family: var(--display-font); text-transform: uppercase; letter-spacing: 1px; color: #fff; }

/* ── Toast ── */
#toast-container { position: fixed; top: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; }
.toast { padding: 16px 24px; border-radius: var(--radius-sm); color: #fff; font-weight: 600; font-size: 14px; animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); min-width: 280px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-family: var(--mono); border: 1px solid rgba(255,255,255,0.1); }
.toast-success { background: linear-gradient(135deg, rgba(184,255,61,0.2), rgba(0,0,0,0.8)); border-left: 4px solid var(--green); }
.toast-error { background: linear-gradient(135deg, rgba(255,0,85,0.2), rgba(0,0,0,0.8)); border-left: 4px solid var(--red); }
.toast-info { background: linear-gradient(135deg, rgba(124,92,252,0.2), rgba(0,0,0,0.8)); border-left: 4px solid var(--accent); }
@keyframes toastIn { from { transform: translateX(100%) scale(0.9); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }

/* ── Rating Stars ── */
.stars { display: flex; gap: 4px; }
.stars i { color: var(--text-muted); cursor: pointer; font-size: 18px; transition: color 0.2s; }
.stars i.active, .stars i:hover { color: var(--gold); }

/* ── Admin ── */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat { padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-stat .value { font-size: 32px; font-weight: 800; font-family: var(--mono); }
.admin-stat .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.admin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.admin-tab { padding: 10px 20px; color: var(--text-muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; background: none; border-top: none; border-left: none; border-right: none; }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.status-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.status-active { background: var(--green-dim); color: var(--green); }
.status-inactive { background: var(--red-dim); color: var(--red); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .trade-discovery-grid { grid-template-columns: 1fr; }
  .trade-layout { grid-template-columns: 1fr; }
  .trade-panel .card { position: static; }
}
@media (max-width: 768px) {
  .top-nav { display: none; }
  .logo-text { display: none; }
  .sidebar-toggle { display: block; }
  .main-content { margin-left: 0; }
  .content-area { padding: 16px; }
  .page-header h1 { font-size: 20px; }
  .profile-header { flex-direction: column; text-align: center; padding-top: 58px; }
  .profile-cover-form { top: 12px; right: 12px; }
  .profile-details h1 { font-size: 24px; overflow-wrap: anywhere; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .token-info-bar { justify-content: center; text-align: center; }
  .wallet-balance-amount { font-size: 32px; }
  .token-mini-item { padding: 12px 14px; }
  .token-mini-name { max-width: 180px; }
  .logo-image-dashboard { height: 90px; max-width: 320px; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .wallet-actions { flex-direction: column; }
}

/* ── Crypto Ticker ── */
.crypto-ticker-bar {
  background: rgba(10,4,16,0.95);
  border-top: 1px solid rgba(184,255,61,0.3);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  z-index: 50;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
  animation: slideUpFade 0.5s ease 0.3s both;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticker-item span {
  color: var(--text-secondary);
  font-family: var(--display-font);
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  .crypto-ticker-bar {
    left: 0;
    justify-content: center;
    gap: 16px;
    padding: 0 16px;
  }
}
.main-content {
  padding-bottom: 40px;
}

/* ── Token Banner ── */
.token-banner-container {
  position: relative;
  width: 100%;
  height: 280px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: slideUpFade 0.6s ease;
}

.token-banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.token-banner-slide {
  min-width: 100%;
  height: 100%;
}

.token-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.token-banner-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.token-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 4, 16, 0.85) 0%, rgba(18, 5, 27, 0.75) 50%, rgba(26, 16, 46, 0.85) 100%);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  padding: 32px;
  transition: background 0.3s ease;
}

.token-banner-link:hover .token-banner-overlay {
  background: linear-gradient(135deg, rgba(10, 4, 16, 0.75) 0%, rgba(18, 5, 27, 0.65) 50%, rgba(26, 16, 46, 0.75) 100%);
}

.token-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 32px;
}

.token-banner-info {
  flex: 1;
  min-width: 0;
}

.token-banner-title {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--display-font);
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.token-banner-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.token-banner-chain {
  background: rgba(124, 92, 252, 0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--display-font);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(124, 92, 252, 0.3);
}

.token-banner-address {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.token-banner-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.token-banner-stat {
  text-align: center;
  min-width: 80px;
}

.token-banner-price,
.token-banner-mcap,
.token-banner-volume {
  font-size: 20px;
  font-weight: 900;
  font-family: var(--display-font);
  color: var(--green);
  text-shadow: 0 0 10px rgba(184, 255, 61, 0.3);
  margin-bottom: 4px;
}

.token-banner-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-family: var(--display-font);
}

.token-banner-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.token-banner-prev,
.token-banner-next {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 4, 16, 0.95);
  color: var(--text-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.token-banner-prev:hover,
.token-banner-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(124, 92, 252, 0.4);
}

.token-banner-prev:active,
.token-banner-next:active {
  transform: translateY(0);
}

.token-banner-prev:hover,
.token-banner-next:hover {
  background: rgba(124, 92, 252, 0.2);
  border-color: var(--accent);
  color: var(--green);
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .token-banner-container {
    height: 240px;
    margin-bottom: 20px;
  }
  
  .token-banner-overlay {
    padding: 20px;
  }
  
  .token-banner-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .token-banner-title {
    font-size: 22px;
  }
  
  .token-banner-stats {
    gap: 20px;
  }
  
  .token-banner-stat {
    min-width: 60px;
  }
  
  .token-banner-price,
  .token-banner-mcap,
  .token-banner-volume {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .token-banner-container {
    height: 200px;
  }
  
  .token-banner-overlay {
    padding: 16px;
  }
  
  .token-banner-stats {
    gap: 16px;
  }
  
  .token-banner-stat {
    min-width: 50px;
  }
  
  .token-banner-price,
  .token-banner-mcap,
  .token-banner-volume {
    font-size: 14px;
  }
  
  .token-banner-controls {
    bottom: 12px;
    right: 12px;
  }
  
.token-banner-prev,
.token-banner-next {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ── Header compact modes ── */
.claim-account-btn i { font-size: 13px; }

@media (max-width: 1280px) {
  .top-bar { padding: 10px 16px; gap: 10px; }
  .top-nav { margin: 0 10px; gap: 4px; justify-content: center; }
  .nav-item { width: 42px; height: 40px; padding: 0; justify-content: center; border-radius: 10px; }
  .nav-item span { display: none !important; }
  .nav-item i { width: auto; font-size: 16px; }
  .top-bar-right { gap: 8px; }
  .claim-account-btn { width: 42px; height: 40px; padding: 0; border-radius: 10px; }
  .claim-account-btn span { display: none; }
  .balance-display,
  .points-display { width: auto; height: auto; padding: 10px 16px; justify-content: center; border-radius: 0; }
  .balance-display span,
  .points-display span { display: inline; }
}

@media (max-width: 768px) {
  .top-bar { align-items: center; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; }
  .top-bar::-webkit-scrollbar { display: none; }
  .logo { flex-shrink: 0; }
  .logo-icon { font-size: 24px; }
  .top-nav { display: flex !important; flex: 0 0 auto; margin: 0 4px; overflow: visible; }
  .top-bar-right { flex-shrink: 0; margin-left: 0; }
  .header-stats { gap: 6px; }
  .user-avatar { width: 38px; height: 38px; }
}

@media (max-width: 420px) {
  .top-bar { gap: 6px; }
  .nav-item,
  .claim-account-btn { width: 36px; height: 36px; }
  .balance-display,
  .points-display { width: auto; height: auto; padding: 8px 12px; }
  .nav-item i,
  .claim-account-btn i,
  .balance-display i,
  .points-display i { font-size: 14px; }
  .user-avatar { width: 34px; height: 34px; font-size: 14px; }
}

/* ── Dashboard hero slider ── */
.token-banner-container {
  height: clamp(340px, 42vw, 500px);
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(184,255,61,0.22), transparent 30%),
    radial-gradient(circle at 82% 15%, rgba(124,92,252,0.32), transparent 34%),
    linear-gradient(135deg, #12051b 0%, #09020f 58%, #04181a 100%);
}

.token-banner-slide {
  position: relative;
  isolation: isolate;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.token-banner-slide:hover {
  box-shadow: 0 0 50px rgba(124, 92, 252, 0.4), inset 0 0 30px rgba(124, 92, 252, 0.15);
  border-color: rgba(124, 92, 252, 0.6);
  z-index: 5;
  transform: translateY(-2px);
}

.token-banner-slide:hover::before {
  filter: brightness(1.4) saturate(1.2);
  transform: scale(1.04);
}

.token-banner-slide::before {
  transition: all 0.6s ease;
}

.token-banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(10,4,16,0.72), rgba(10,4,16,0.25)),
    var(--banner-image, linear-gradient(135deg, rgba(184,255,61,0.16), rgba(124,92,252,0.12))),
    radial-gradient(circle at 16% 25%, rgba(184,255,61,0.34), transparent 34%),
    linear-gradient(135deg, #151025, #071317);
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.token-banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}

.token-banner-slide.slide-violet::before {
  background:
    linear-gradient(135deg, rgba(10,4,16,0.74), rgba(16,8,38,0.38)),
    var(--banner-image, linear-gradient(135deg, rgba(124,92,252,0.2), rgba(56,189,248,0.1))),
    radial-gradient(circle at 72% 20%, rgba(124,92,252,0.5), transparent 34%),
    linear-gradient(135deg, #17091f, #08141f);
}

.token-banner-slide.slide-gold::before {
  background:
    linear-gradient(135deg, rgba(10,4,16,0.78), rgba(25,15,9,0.42)),
    var(--banner-image, linear-gradient(135deg, rgba(207,184,163,0.18), rgba(124,92,252,0.1))),
    radial-gradient(circle at 74% 28%, rgba(207,184,163,0.4), transparent 32%),
    linear-gradient(135deg, #130712, #141006);
}

.token-banner-background { background: transparent; }

.token-banner-overlay {
  background: linear-gradient(90deg, rgba(10,4,16,0.92), rgba(10,4,16,0.52) 58%, rgba(10,4,16,0.7));
  backdrop-filter: none;
  align-items: stretch;
  padding: clamp(22px, 4vw, 54px);
}

.token-banner-link:hover .token-banner-overlay {
  background: linear-gradient(90deg, rgba(10,4,16,0.88), rgba(10,4,16,0.44) 58%, rgba(10,4,16,0.66));
}

.token-banner-content {
  align-items: flex-end;
  min-height: 100%;
}

.token-banner-info {
  max-width: 740px;
}

.token-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.token-banner-title {
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.96;
  max-width: 12ch;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.token-banner-subtitle {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 18px;
}

.token-banner-stats {
  align-self: flex-end;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,4,16,0.58);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.3);
}



@media (max-width: 900px) {
  .token-banner-container { height: 420px; }
  .token-banner-content { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .token-banner-title { max-width: 13ch; }
  .token-banner-stats { align-self: stretch; justify-content: space-between; width: 100%; gap: 10px; }
}

@media (max-width: 520px) {
  .token-banner-container { height: 360px; border-radius: 12px; }
  .token-banner-overlay { padding: 20px; }
  .token-banner-title { font-size: 28px; max-width: 100%; }
  .token-banner-subtitle { font-size: 15px; }
  .token-banner-meta { gap: 8px; flex-wrap: wrap; }
  .token-banner-stats { padding: 12px; }
  .token-banner-label { font-size: 9px; }
  .token-banner-controls { bottom: 12px; right: 12px; }
}

/* ── Activity slider: recent trades, not a landing hero ── */
.dashboard-slider {
  height: 240px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: rgba(18,5,27,0.86);
}

.dashboard-slider .token-banner-slide::before {
  background:
    linear-gradient(90deg, rgba(10,4,16,0.94), rgba(10,4,16,0.68) 52%, rgba(10,4,16,0.82)),
    var(--banner-image, linear-gradient(135deg, rgba(184,255,61,0.12), rgba(124,92,252,0.18))),
    linear-gradient(135deg, #12051b, #071317);
  background-size: cover;
  background-position: center;
}

.dashboard-slider .token-banner-slide::after {
  opacity: 0.35;
}

.dashboard-slider .token-banner-overlay {
  padding: 26px 30px;
  background: linear-gradient(90deg, rgba(10,4,16,0.9), rgba(10,4,16,0.45) 58%, rgba(10,4,16,0.74));
}

.dashboard-slider .token-banner-content {
  align-items: center;
  min-height: 100%;
}

.dashboard-slider .token-banner-info {
  max-width: 560px;
}

.dashboard-slider .token-banner-kicker {
  margin-bottom: 10px;
  font-size: 11px;
}

.dashboard-slider .token-banner-title {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  max-width: 100%;
  margin-bottom: 4px;
}

.dashboard-slider .token-banner-subtitle {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  max-width: 460px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.dashboard-token-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.dashboard-slider .token-banner-meta {
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-slider .token-banner-chain {
  border-radius: 10px;
}

.dashboard-slider .token-banner-stats {
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  min-width: 380px;
}

.dashboard-slider .token-banner-stat {
  min-width: 104px;
}

.dashboard-slider .token-banner-price,
.dashboard-slider .token-banner-mcap,
.dashboard-slider .token-banner-volume {
  font-size: 18px;
}

.dashboard-slider .is-positive { color: var(--green); }
.dashboard-slider .is-negative { color: var(--red); }

.dashboard-stats-slide::before {
  background-image: linear-gradient(90deg, #12051b 0%, #12051b 25%, rgba(18, 5, 27, 0.2) 85%, transparent 100%), var(--rank-image) !important;
  background-size: auto 135% !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  background-color: #12051b !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

@media (max-width: 900px) {
  .dashboard-slider { height: 320px; }
  .dashboard-slider .token-banner-content { justify-content: center; }
  .dashboard-slider .token-banner-stats { min-width: 0; }
}

@media (max-width: 520px) {
  .dashboard-slider { height: 340px; }
  .dashboard-slider .token-banner-overlay { padding: 18px; }
  .dashboard-token-logo { width: 46px; height: 46px; border-radius: 11px; }
  .dashboard-slider .token-banner-title { font-size: 24px; }
  .dashboard-slider .token-banner-subtitle { font-size: 14px; }
  .dashboard-slider .token-banner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 8px;
  }
  .dashboard-slider .token-banner-stat { min-width: 0; }
  .dashboard-slider .token-banner-price { font-size: 13px; }
}

/* MemeTrainer candy console theme */
:root {
  --bg-primary: #f7f4fb;
  --bg-secondary: #2b263f;
  --bg-card: #211d32;
  --bg-card-hover: #28233f;
  --bg-input: #1c182b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(92, 184, 231, 0.72);
  --text-primary: #f7f3ff;
  --text-secondary: #c6bfd4;
  --text-muted: #8f879f;
  --accent: #ff0b72;
  --accent-hover: #ff4d62;
  --green: #5bb6e7;
  --green-dim: rgba(91, 182, 231, 0.18);
  --red: #ff5b63;
  --red-dim: rgba(255, 91, 99, 0.2);
  --gold: #b88cff;
  --blue: #59b8eb;
  --purple: #765fba;
  --purple-soft: rgba(118, 95, 186, 0.28);
  --panel: #2c2744;
  --panel-deep: #1d192e;
  --disabled-stripe: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.32) 0,
    rgba(255,255,255,0.32) 8px,
    rgba(255,255,255,0.08) 8px,
    rgba(255,255,255,0.08) 16px
  );
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 36px rgba(13, 10, 25, 0.26);
  --glow: 0 0 0 4px rgba(255, 11, 114, 0.16);
  --font: 'Rajdhani', sans-serif;
  --display-font: 'Rajdhani', sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 208, 91, 0.12), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(91, 182, 231, 0.18), transparent 24%),
    var(--bg-primary);
  color: var(--text-primary);
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6,
.btn,
.form-group label,
.stat-label,
th,
.logo,
.nav-item,
.trade-tab {
  letter-spacing: 0;
  text-transform: none;
}

.app-layout {
  min-height: 100vh;
  padding: 16px;
}

.main-content {
  min-height: calc(100vh - 32px);
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 11%, rgba(255, 11, 114, 0.08), transparent 20%),
    radial-gradient(circle at 91% 10%, rgba(91, 182, 231, 0.12), transparent 20%),
    var(--panel);
  border-radius: 0;
  box-shadow: none;
}

.auth-layout {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 11, 114, 0.12), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(91, 182, 231, 0.18), transparent 30%),
    var(--panel);
}

.top-bar {
  position: sticky;
  top: 16px;
  margin: 0;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(to bottom, rgba(18, 5, 27, 0.4), rgba(18, 5, 27, 0.9)), url('../header_background.png');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(16px);
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: linear-gradient(145deg, var(--accent), var(--red));
  color: #fff;
  box-shadow: none;
  font-size: 0;
  filter: none;
}

.logo-icon::before {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 17px;
}

.logo-text {
  font-size: 22px;
  text-transform: none;
  color: #fff;
}

.text-accent {
  color: var(--accent) !important;
  text-shadow: none;
}

.top-nav {
  gap: 6px;
  margin: 0 20px;
  padding: 6px;
  flex: 0 1 auto;
  background: var(--panel-deep);
  border-radius: 999px;
  box-shadow: inset 0 2px 9px rgba(0,0,0,0.32);
}

.nav-item {
  width: 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  color: #d9d4e8;
  border: none;
}

.nav-item span {
  display: none;
}

.nav-item i {
  width: auto;
  font-size: 16px;
}

.nav-item::before {
  display: none;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(145deg, var(--accent), #ff3f71);
  color: #fff;
  border: 0;
  box-shadow: none;
  transform: translateY(-1px);
}

.nav-item:nth-child(2).active,
.nav-item:nth-child(2):hover,
.nav-item:nth-child(4).active,
.nav-item:nth-child(4):hover {
  background: linear-gradient(145deg, var(--red), #ff7a62);
}

.nav-item:nth-child(3).active,
.nav-item:nth-child(3):hover,
.nav-item:nth-child(5).active,
.nav-item:nth-child(5):hover {
  background: linear-gradient(145deg, var(--blue), #65c6ee);
}

.nav-item:nth-child(6).active,
.nav-item:nth-child(6):hover,
.nav-admin.active,
.nav-admin:hover {
  background: linear-gradient(145deg, var(--purple), #5b4a93);
}

.top-bar-right {
  gap: 10px;
}

.balance-display,
.points-display,
.user-avatar,
.logout-btn-header {
  border-radius: 0;
}

.balance-display,
.points-display {
  padding: 9px 14px;
  font-family: var(--font);
  background: var(--panel-deep);
  border: none;
  box-shadow: none;
}

.balance-display {
  color: var(--gold);
}

.points-display {
  color: var(--blue);
}

.user-avatar {
  background: linear-gradient(145deg, var(--purple), #4d416f);
  box-shadow: none;
}

.logout-btn-header {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--panel-deep);
}

.content-area {
  max-width: 1320px;
  padding: 30px;
}

.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  -webkit-text-fill-color: currentColor;
  background: none;
  text-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.token-info-bar,
.chart-container,
.holding-info,
.trade-summary,
.table-wrap,
.modal {
  background: var(--bg-card);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.card {
  padding: 22px;
}

.card::before,
.auth-card::after,
.investment-card::before,
.profile-header::after,
.wallet-balance-card::before,
.badge-item::before {
  display: none;
}

/* Hover effects removed from non-clickable elements */

.card-header {
  margin-bottom: 18px;
}

.card-header h2,
.card-header h3,
.profile-details h1,
.token-name-group h2 {
  color: #fff;
  font-weight: 700;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 132px;
  text-align: left;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.stat-value,
.wallet-balance-amount {
  font-family: var(--font);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  color: #fff;
  text-shadow: none;
}

.wallet-balance-amount,
.text-green {
  color: var(--gold) !important;
  text-shadow: none;
}

.text-red {
  color: var(--red) !important;
  text-shadow: none;
}

.text-gold {
  color: var(--gold) !important;
  text-shadow: none;
}

.btn {
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  color: #fff;
  box-shadow: none;
}

.btn::before {
  display: none;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), #ff3f71);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(145deg, #ff3387, var(--red));
  color: #fff;
}

.btn-green {
  background: linear-gradient(145deg, var(--gold), #d2c2ff);
  color: #4a3651;
}

.btn-green:hover {
  background: linear-gradient(145deg, #e9d8ff, #d2c2ff);
  color: #302544;
}

.btn-red {
  background: linear-gradient(145deg, var(--red), #ff7a62);
}

.btn-outline {
  background: transparent;
  border: 3px solid var(--gold);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.btn-outline:hover {
  background: rgba(184, 140, 255, 0.12);
  border-color: var(--gold);
  color: #fff;
}

.btn-sm {
  min-height: 34px;
  padding: 6px 16px;
}

.btn:disabled,
button:disabled {
  background: var(--disabled-stripe), #d3d1d5 !important;
  color: rgba(37,33,50,0.46) !important;
  border-color: rgba(255,255,255,0.16) !important;
}

.form-control {
  min-height: 46px;
  padding: 12px 16px;
  background: var(--panel-deep);
  border: none;
  border-radius: 0;
  color: #fff;
  font-family: var(--font);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.34);
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.34), 0 0 0 3px rgba(91, 182, 231, 0.18);
}

.form-group label {
  color: var(--text-secondary);
  font-size: 14px;
}

.input-group {
  overflow: hidden;
  background: var(--panel-deep);
  border-radius: 0;
  box-shadow: none;
}

.input-group .form-control {
  border-radius: 999px 0 0 999px;
  box-shadow: none;
}

.input-group .btn {
  border-radius: 0;
}

.table-wrap {
  overflow: auto;
}

table {
  border-spacing: 0;
}

th {
  background: var(--panel-deep);
  color: var(--text-muted);
}

th,
td {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* tr:hover td removed */

.trade-token-logo,
.portfolio-token-logo,
.token-mini-logo,
.token-logo,
.lb-avatar,
.profile-avatar-lg,
.badge-emblem {
  border-radius: 50%;
  border: none;
  box-shadow: none;
}

.trade-discovery-grid {
  gap: 16px;
}

.token-mini-item {
  background: var(--panel-deep);
  border: none;
  border-radius: 0;
}

.token-mini-symbol,
.portfolio-token-name,
.badge-name {
  font-family: var(--font);
}

.token-info-bar {
  border-left: 0;
  gap: 18px;
}

.chart-container {
  min-height: 500px;
}

.trade-panel .card {
  top: 96px;
  border-top: 0;
}

.trade-tabs {
  background: var(--panel-deep);
  border-radius: 0;
  padding: 6px;
  border: 0;
  box-shadow: none;
}

.trade-tab {
  border-radius: 0;
  color: var(--text-muted);
}

.trade-tab.active-buy {
  background: linear-gradient(145deg, var(--gold), #d2c2ff);
  color: #3b2d47;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12);
}

.trade-tab.active-sell {
  background: linear-gradient(145deg, var(--accent), var(--red));
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12);
}

.holding-info,
.trade-summary {
  background: var(--panel-deep);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.3);
}

.money-presets button {
  min-height: 36px;
  padding: 7px 18px;
  border-radius: 0;
  background: var(--panel-deep);
  border: none;
  color: var(--text-secondary);
}

.badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.badge-item {
  background: var(--panel-deep);
  border-radius: 0;
}

.badge-emblem {
  background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.5), transparent 28%), linear-gradient(145deg, var(--badge-color), var(--purple));
}

.wallet-balance-card {
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 11, 114, 0.14), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(91, 182, 231, 0.16), transparent 28%),
    var(--bg-card);
}

.profile-header {
  background: linear-gradient(135deg, rgba(33,29,50,0.94), rgba(44,39,68,0.88));
}

.profile-cover-btn,
.profile-avatar-btn,
.status-badge {
  border-radius: 999px;
}

.investment-card h3 {
  color: var(--gold);
}

.investment-card h3::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 11, 114, 0.5);
}

.alert {
  border-radius: 12px;
}

.alert-success,
.status-active {
  background: rgba(91, 182, 231, 0.16);
  color: var(--blue);
  border-color: rgba(91, 182, 231, 0.38);
}

.alert-error,
.status-inactive {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255, 91, 99, 0.38);
}

#toast-container {
  top: 28px;
  right: 28px;
}

.toast {
  border-radius: 14px;
  background: var(--panel-deep);
}

.crypto-ticker-bar {
  background: var(--panel-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -8px 24px rgba(12,10,24,0.22);
}

.token-banner-container,
.dashboard-slider {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--bg-card);
}

.token-banner-overlay,
.dashboard-slider .token-banner-overlay {
  background: linear-gradient(90deg, rgba(33,29,50,0.94), rgba(44,39,68,0.62) 58%, rgba(33,29,50,0.78));
}

.token-banner-kicker,
.dashboard-slider .token-banner-kicker {
  color: var(--gold);
}

.token-banner-chain,
.token-banner-address,
.token-banner-stats {
  border-radius: 12px;
  background: var(--panel-deep);
}

@media (max-width: 1024px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: center;
  }

  .top-bar-right {
    margin-left: auto;
  }

  .trade-layout {
    grid-template-columns: 1fr;
  }

  .trade-panel .card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .app-layout {
    padding: 0;
  }

  .main-content {
    min-height: 100vh;
    border-radius: 0;
  }

  .top-bar {
    top: 0;
    padding: 12px;
  }

  .content-area {
    padding: 18px;
  }

  .header-stats,
  .claim-account-btn span,
  .logo-text {
    display: none;
  }

  .trade-discovery-grid {
    grid-template-columns: 1fr;
  }

  .trade-amount-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .amount-tools {
    width: 100%;
    justify-content: space-between;
  }

  .input-group {
    border-radius: 14px;
    flex-direction: column;
  }

  .input-group .form-control,
  .input-group .btn {
    width: 100%;
    border-radius: 12px;
  }

  .auth-card {
    padding: 30px 22px;
  }
}

/* Final trade-screen fixes */
.top-bar-right .claim-account-btn {
  height: 42px;
  min-width: 0;
  max-width: 148px;
  padding: 0 14px;
  white-space: nowrap;
  line-height: 1;
}

.top-bar-right .claim-account-btn span {
  display: inline-block;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-right .balance-display,
.top-bar-right .points-display {
  height: 42px;
  min-width: 84px;
  padding: 0 14px;
  line-height: 1;
}

.top-bar-right .user-avatar,
.top-bar-right .logout-btn-header {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.token-info-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 118px;
  background:
    linear-gradient(90deg, rgba(33,29,50,0.92), rgba(33,29,50,0.78)),
    var(--bg-card);
}

.token-info-bar::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--token-banner-image);
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: blur(18px) saturate(1.35);
  transform: scale(1.15);
}

.token-info-bar::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,11,114,0.18), transparent 34%),
    linear-gradient(90deg, rgba(33,29,50,0.92), rgba(33,29,50,0.72));
}

.token-info-bar > * {
  position: relative;
  z-index: 1;
}

.trade-layout {
  align-items: start;
}

.trade-panel {
  align-self: start;
}

.trade-panel .card {
  position: sticky;
  top: 16px;
  margin-top: 0;
}

.trade-amount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.trade-amount-head label {
  margin-bottom: 0;
}

.amount-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amount-all-btn,
.unit-switch button {
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
}

.amount-all-btn {
  min-height: 30px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #ff3f71);
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}

.unit-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--panel-deep);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.28);
}

.unit-switch button {
  min-width: 44px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--text-muted);
  background: transparent;
  border-radius: 999px;
}

.unit-switch button.active {
  color: #3b2d47;
  background: var(--gold);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}

#token-trades table th:nth-child(3),
#token-trades table td:nth-child(3) {
  color: var(--gold);
}

@media (max-width: 768px) {
  .top-bar-right .claim-account-btn span,
  .top-bar-right .balance-display,
  .top-bar-right .points-display {
    display: none;
  }

  .trade-amount-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .amount-tools {
    width: 100%;
    justify-content: space-between;
  }
}

/* Trade screen refinements */
.top-bar-right {
  align-self: center;
}

.top-bar-right .claim-account-btn {
  height: 42px;
  min-width: 0;
  max-width: 148px;
  padding: 0 14px;
  white-space: nowrap;
  line-height: 1;
}

.top-bar-right .claim-account-btn span {
  display: inline-block;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-right .balance-display,
.top-bar-right .points-display {
  height: 42px;
  min-width: 84px;
  padding: 0 14px;
  line-height: 1;
}

.top-bar-right .user-avatar,
.top-bar-right .logout-btn-header {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.token-info-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 118px;
  background:
    linear-gradient(90deg, rgba(33,29,50,0.92), rgba(33,29,50,0.78)),
    var(--bg-card);
}

.token-info-bar::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--token-banner-image);
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: blur(18px) saturate(1.35);
  transform: scale(1.15);
}

.token-info-bar::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,11,114,0.18), transparent 34%),
    linear-gradient(90deg, rgba(33,29,50,0.92), rgba(33,29,50,0.72));
}

.token-info-bar > * {
  position: relative;
  z-index: 1;
}

.trade-layout {
  align-items: start;
}

.trade-panel {
  align-self: start;
}

.trade-panel .card {
  position: sticky;
  top: 16px;
  margin-top: 0;
}

.trade-amount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.trade-amount-head label {
  margin-bottom: 0;
}

.amount-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amount-all-btn,
.unit-switch button {
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
}

.amount-all-btn {
  min-height: 30px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #ff3f71);
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}

.unit-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--panel-deep);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.28);
}

.unit-switch button {
  min-width: 44px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--text-muted);
  background: transparent;
  border-radius: 999px;
}

.unit-switch button.active {
  color: #3b2d47;
  background: var(--gold);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}

#token-trades table th:nth-child(3),
#token-trades table td:nth-child(3) {
  color: var(--gold);
}

@media (max-width: 768px) {
  .top-bar-right .claim-account-btn span,
  .top-bar-right .balance-display,
  .top-bar-right .points-display {
    display: none;
  }

  .trade-amount-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .amount-tools {
    width: 100%;
    justify-content: space-between;
  }
}

/* Soft travel dashboard theme */
:root {
  --bg-primary: #f7f1ef;
  --bg-secondary: #f1e5df;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: #ffffff;
  --bg-input: #fbf6f3;
  --border: rgba(92, 63, 72, 0.09);
  --border-hover: rgba(166, 112, 135, 0.24);
  --text-primary: #282333;
  --text-secondary: #6f6270;
  --text-muted: #a99ca3;
  --accent: #b8879b;
  --accent-hover: #9f6e86;
  --green: #6e9f84;
  --green-dim: rgba(110, 159, 132, 0.15);
  --red: #c77577;
  --red-dim: rgba(199, 117, 119, 0.14);
  --gold: #b88cff;
  --blue: #7b92bd;
  --purple: #a87993;
  --purple-soft: rgba(184, 135, 155, 0.16);
  --panel: #fffaf7;
  --panel-deep: #f2e6e0;
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
  --glow: none;
  --font: 'Rajdhani', sans-serif;
  --display-font: 'Rajdhani', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  background: var(--bg-primary);
}

body {
  background:
    radial-gradient(circle at 8% 18%, rgba(200, 166, 188, 0.28), transparent 18%),
    radial-gradient(circle at 93% 86%, rgba(204, 185, 151, 0.22), transparent 22%),
    linear-gradient(135deg, #fbf7f5 0%, #f2e7e5 100%);
  color: var(--text-primary);
  font-weight: 600;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(0.2px);
}

body::before {
  width: 132px;
  height: 76px;
  left: 36px;
  top: 190px;
  background:
    linear-gradient(145deg, rgba(194, 145, 177, 0.54), rgba(246, 231, 221, 0.72));
  clip-path: polygon(6% 63%, 22% 25%, 44% 14%, 61% 31%, 83% 25%, 98% 55%, 74% 84%, 35% 78%);
  box-shadow: 24px 22px 54px rgba(115, 83, 96, 0.18);
}

body::after {
  width: 154px;
  height: 78px;
  right: 54px;
  top: 72px;
  background:
    linear-gradient(145deg, rgba(179, 130, 177, 0.46), rgba(247, 236, 219, 0.7));
  clip-path: polygon(5% 58%, 21% 28%, 42% 18%, 58% 28%, 77% 16%, 97% 43%, 82% 77%, 41% 83%);
  box-shadow: 18px 20px 46px rgba(115, 83, 96, 0.16);
}

a {
  color: var(--accent-hover);
}

a:hover {
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6,
.btn,
.form-group label,
.stat-label,
th,
.logo,
.nav-item,
.trade-tab {
  letter-spacing: 0;
  text-transform: none;
}

.app-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
}

.main-content {
  position: relative;
  display: block;
  min-height: calc(100vh - clamp(36px, 8vw, 96px));
  width: min(1420px, 100%);
  margin: 0 auto;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(242, 230, 224, 0.96) 0 88px, rgba(255, 250, 247, 0.94) 88px 100%);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.main-content::before {
  content: "";
  position: absolute;
  inset: 20px 28px 20px 112px;
  z-index: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.top-bar,
.content-area {
  position: relative;
  z-index: 1;
}

.top-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 88px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.logo {
  justify-content: center;
}

.logo-text {
  display: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(145deg, #c59aae, #8d6277);
  color: #fff;
  box-shadow: 0 12px 24px rgba(139, 94, 113, 0.28);
  font-size: 0;
}

.logo-icon::before {
  content: "\f072";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 17px;
}

.top-nav {
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: column !important;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.nav-item {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 0;
  color: #a9909b;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.nav-item span {
  display: none;
}

.nav-item i {
  width: auto;
  font-size: 17px;
}

.nav-item.active {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 0 15px var(--accent);
}
.nav-item.active i { color: #fff !important; }

.nav-admin.active,
.nav-admin:hover {
  background: var(--gold) !important;
  color: #000 !important;
  transform: translateY(-1px);
}

.top-bar-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  width: auto;
}

.header-stats {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.claim-account-btn {
  width: auto !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: var(--red) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  margin-right: 8px;
}

.claim-account-btn span {
  display: inline !important;
}

.user-avatar,
.logout-btn-header {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 14px 30px rgba(128, 89, 104, 0.14);
}

.content-area {
  min-height: calc(100vh - clamp(36px, 8vw, 96px));
  margin-left: 112px;
  padding: clamp(34px, 4vw, 56px);
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-header h1 {
  max-width: 700px;
  color: var(--text-primary);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
}

.page-header p {
  max-width: 420px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.4;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.token-info-bar,
.chart-container,
.holding-info,
.trade-summary,
.table-wrap,
.modal,
.admin-stat {
  background: rgba(255, 255, 255, 0.05); /* Simplified background */
  border: none;
  border-radius: 0;
  color: var(--text-primary);
  box-shadow: none;
}

.card {
  padding: 26px;
  overflow: hidden;
}

/* Card hover effects removed - all cards have same background color */

.card-header {
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-header h2,
.card-header h3,
.profile-details h1,
.token-name-group h2,
.portfolio-token-name,
.badge-name,
.token-mini-symbol {
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 800;
}

/* Modals */
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  position: relative;
  z-index: 10000;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.header-rank-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
  border-radius: 4px !important;
  z-index: 10;
  font-weight: 800;
  letter-spacing: 1px;
}

.header-particles {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
  animation: floatUp 4s infinite ease-in-out;
  box-shadow: 0 0 8px var(--accent);
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.4; }
  100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: 1.2s; }
.particle:nth-child(3) { left: 40%; animation-delay: 0.5s; }
.particle:nth-child(4) { left: 55%; animation-delay: 2s; }
.particle:nth-child(5) { left: 70%; animation-delay: 1s; }
.particle:nth-child(6) { left: 85%; animation-delay: 3s; }
.particle:nth-child(7) { left: 15%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 50%; animation-delay: 0.8s; }
.particle:nth-child(9) { left: 80%; animation-delay: 1.5s; }

/* PFP Library Modal */
.pfp-modal {
  max-width: 600px !important;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.pfp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.pfp-option {
  aspect-ratio: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  overflow: hidden;
  border-radius: 50%;
}

.pfp-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfp-option:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.stat-card {
  min-height: 142px;
  padding: 28px;
  background: var(--bg-card); /* Standard dark background */
}

/* Highlight style for important cards */
.card-highlight {
  background: rgba(124, 92, 252, 0.22) !important;
  border: none !important;
  box-shadow: none !important;
}


.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.stat-value,
.wallet-balance-amount,
.token-price-big {
  color: var(--text-primary);
  font-family: var(--font);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-green,
.wallet-balance-amount {
  color: var(--green) !important;
  text-shadow: none;
}

.text-red {
  color: var(--red) !important;
  text-shadow: none;
}

.text-gold,
.text-accent {
  color: var(--accent-hover) !important;
  text-shadow: none;
}

.text-muted,
.portfolio-token-symbol,
.badge-date,
.token-mini-name,
.token-mini-subtext {
  color: var(--text-muted) !important;
}

.btn,
.money-presets button,
.admin-tab {
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(145deg, #bf8fa4, #a5758c);
  color: #fff;
  box-shadow: 0 16px 32px rgba(149, 94, 117, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #aa7890, #936178);
  color: #fff;
}

.btn-green {
  background: linear-gradient(145deg, #8dac9a, #6d947e);
  color: #fff;
  box-shadow: 0 16px 32px rgba(94, 132, 112, 0.2);
}

.btn-green:hover {
  background: linear-gradient(145deg, #769f89, #5e866f);
  color: #fff;
}

.btn-red {
  background: linear-gradient(145deg, #d0918d, #bd7475);
  color: #fff;
}

.btn-outline {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(91, 65, 74, 0.1);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: #fff;
  border-color: rgba(166, 112, 135, 0.22);
  color: var(--accent-hover);
}

.btn:disabled,
button:disabled {
  background: repeating-linear-gradient(
    135deg,
    rgba(221, 211, 207, 0.9) 0,
    rgba(221, 211, 207, 0.9) 9px,
    rgba(242, 236, 232, 0.9) 9px,
    rgba(242, 236, 232, 0.9) 18px
  ) !important;
  color: rgba(88, 72, 78, 0.42) !important;
}

.form-control,
select.form-control {
  min-height: 50px;
  padding: 13px 18px;
  background: #fffaf7;
  border: 1px solid rgba(74, 52, 61, 0.08);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: var(--font);
  box-shadow: inset 0 2px 6px rgba(120, 88, 98, 0.05);
}

.form-control:focus {
  border-color: rgba(166, 112, 135, 0.38);
  box-shadow: 0 0 0 5px rgba(184, 135, 155, 0.13);
  background: #fff;
}

.form-control::placeholder {
  color: #b8abb1;
}

.form-group label,
th {
  color: var(--text-secondary);
}

.input-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(74, 52, 61, 0.08);
  border-radius: 26px;
  box-shadow: 0 14px 30px rgba(126, 91, 101, 0.08);
}

.input-group .form-control {
  border: 0;
  border-radius: 26px 0 0 26px;
  box-shadow: none;
}

.input-group .btn {
  border-radius: 0 26px 26px 0;
}

.table-wrap {
  background: rgba(255,255,255,0.66);
  border-radius: 26px;
}

th {
  background: rgba(245, 237, 233, 0.88);
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid rgba(74, 52, 61, 0.07);
}

tr:hover td {
  background: rgba(246, 237, 232, 0.58);
}

.trade-token-logo,
.portfolio-token-logo,
.token-mini-logo,
.token-logo,
.lb-avatar,
.profile-avatar-lg,
.badge-emblem {
  border-radius: 22px;
  border: 4px solid #fff;
  box-shadow: 0 12px 26px rgba(126, 91, 101, 0.16);
}

.user-avatar img,
.profile-avatar-lg img,
.portfolio-token-logo,
.trade-token-logo,
.token-mini-logo {
  object-fit: cover;
}

.trade-discovery-grid {
  gap: 18px;
}

.token-mini-item,
.badge-item,
.money-presets button,
.holding-info,
.trade-summary {
  background: rgba(255, 250, 247, 0.86);
  border: 1px solid rgba(74, 52, 61, 0.07);
  border-radius: 24px;
  color: var(--text-primary);
}

.token-mini-item {
  padding: 16px;
}

.token-info-bar {
  border-left: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(246,235,230,0.84));
}

.trade-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.chart-container {
  min-height: 540px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(246,235,230,0.78));
}

.trade-panel .card {
  top: 32px;
  border-top: 0;
}

.trade-tabs {
  gap: 6px;
  background: #f4e9e4;
  border: 1px solid rgba(74, 52, 61, 0.06);
  border-radius: 999px;
  padding: 6px;
  box-shadow: none;
}

.trade-tab {
  border-radius: 999px;
  color: var(--text-muted);
}

.trade-tab.active-buy {
  background: #ffffff;
  color: var(--green);
  box-shadow: 0 10px 22px rgba(126, 91, 101, 0.12);
}

.trade-tab.active-sell {
  background: #ffffff;
  color: var(--red);
  box-shadow: 0 10px 22px rgba(126, 91, 101, 0.12);
}

.trade-summary-row {
  border-bottom-color: rgba(74, 52, 61, 0.08);
}

.badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
}

.badge-emblem {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.7), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--badge-color) 72%, #fff), var(--badge-color));
}

.wallet-balance-card {
  background:
    radial-gradient(circle at 12% 20%, rgba(184, 135, 155, 0.2), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(210, 185, 141, 0.22), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(248,240,235,0.88));
  text-align: left;
}

.wallet-actions {
  justify-content: flex-start;
}

.profile-header {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(78, 56, 65, 0.18), rgba(255,255,255,0.7)),
    linear-gradient(145deg, #fff, #f5eae5);
}

.profile-details p {
  color: var(--text-secondary);
}

.profile-cover-btn,
.profile-avatar-btn,
.status-badge {
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--text-primary);
  border-color: rgba(74, 52, 61, 0.08);
}

.investment-card h3 {
  color: var(--accent-hover);
}

.investment-card h3::before {
  background: var(--accent);
  box-shadow: none;
}

.ic-row {
  border-bottom-color: rgba(74, 52, 61, 0.07);
}

.ic-label {
  color: var(--text-secondary);
}

.ic-value {
  color: var(--text-primary);
}

.rank-1,
.rank-2,
.rank-3 {
  text-shadow: none;
}

.rank-1 {
  color: var(--gold);
}

.rank-2 {
  color: var(--blue);
}

.rank-3 {
  color: var(--accent);
}

.alert,
.toast {
  border-radius: 22px;
}

.alert-success,
.status-active,
.toast-success {
  background: rgba(110, 159, 132, 0.13);
  color: #527d65;
  border-color: rgba(110, 159, 132, 0.22);
}

.alert-error,
.status-inactive,
.toast-error {
  background: rgba(199, 117, 119, 0.13);
  color: var(--red);
  border-color: rgba(199, 117, 119, 0.22);
}

.toast,
.toast-info {
  background: rgba(255,255,255,0.92);
  color: var(--text-primary);
  border-left: 0;
  box-shadow: 0 20px 50px rgba(126, 91, 101, 0.18);
}

.modal-overlay {
  background: rgba(63, 47, 55, 0.36);
  backdrop-filter: blur(12px);
}

.crypto-ticker-bar {
  left: clamp(18px, 4vw, 48px);
  right: clamp(18px, 4vw, 48px);
  bottom: 12px;
  width: auto;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(74, 52, 61, 0.08);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(126, 91, 101, 0.12);
  backdrop-filter: blur(14px);
}

.ticker-item {
  color: var(--text-secondary);
}

.token-banner-container,
.dashboard-slider {
  border-radius: 34px;
  border: 1px solid rgba(74, 52, 61, 0.07);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 22px 54px rgba(126, 91, 101, 0.12);
}

.token-banner-overlay,
.dashboard-slider .token-banner-overlay {
  background: linear-gradient(90deg, rgba(255,255,255,0.86), rgba(247,237,232,0.58) 58%, rgba(255,255,255,0.76));
}

.token-banner-title,
.token-banner-subtitle,
.dashboard-slider .token-banner-title,
.dashboard-slider .token-banner-subtitle {
  color: var(--text-primary);
}

.token-banner-kicker,
.dashboard-slider .token-banner-kicker {
  color: var(--accent-hover);
}

.token-banner-chain,
.token-banner-address,
.token-banner-stats {
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  color: var(--text-primary);
}

.dashboard-token-logo {
  border-radius: 22px;
  border: 4px solid #fff;
}

.auth-layout {
  background:
    radial-gradient(circle at 20% 20%, rgba(184, 135, 155, 0.22), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(210, 185, 141, 0.18), transparent 30%),
    linear-gradient(135deg, #fbf7f5, #f2e7e5);
}

.auth-card {
  background: rgba(255,255,255,0.82);
  color: var(--text-primary);
}

.auth-card .logo-text {
  display: inline;
  color: var(--text-primary);
}

.auth-card h1,
.auth-subtitle,
.auth-footer {
  color: var(--text-primary);
}

@media (max-width: 1180px) {
  .main-content {
    background: rgba(255, 250, 247, 0.94);
  }

  .main-content::before {
    inset: 104px 18px 18px;
  }

  .top-bar {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 84px;
    flex-direction: row;
    align-items: center;
    padding: 18px 24px;
  }

  .top-nav {
    flex-direction: row !important;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin: 0 auto;
  }

  .top-bar-right {
    flex-direction: row;
    width: auto;
    margin: 0;
  }

  .content-area {
    min-height: auto;
    margin-left: 0;
    padding: 34px 28px 44px;
  }

  .trade-layout {
    grid-template-columns: 1fr;
  }

  .trade-panel .card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .app-layout {
    padding: 0;
  }

  .main-content {
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .main-content::before {
    inset: 96px 10px 10px;
    border-radius: 28px;
  }

  .top-bar {
    padding: 14px;
    gap: 10px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .content-area {
    padding: 24px 18px 84px;
  }

  .page-header {
    display: block;
  }

  .page-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .card,
  .auth-card,
  .investment-card,
  .wallet-balance-card,
  .profile-header,
  .token-info-bar,
  .chart-container,
  .holding-info,
  .trade-summary,
  .table-wrap,
  .modal {
    border-radius: 24px;
  }

  .input-group {
    border-radius: 24px;
    flex-direction: column;
  }

  .input-group .form-control,
  .input-group .btn {
    width: 100%;
    border-radius: 20px;
  }

  .crypto-ticker-bar {
    left: 10px;
    right: 10px;
  }
}

/* Hermeto.fun sports trading HUD theme */
:root {
  --bg-primary: #06111f;
  --bg-secondary: #081b33;
  --bg-card: rgba(9, 31, 59, 0.94);
  --bg-card-hover: rgba(12, 45, 84, 0.98);
  --bg-input: rgba(3, 13, 27, 0.9);
  --border: rgba(0, 184, 255, 0.28);
  --border-hover: rgba(255, 225, 0, 0.72);
  --text-primary: #f4f8ff;
  --text-secondary: #9fc2e2;
  --text-muted: #6383a2;
  --accent: #ff075f;
  --accent-hover: #ff2f7e;
  --green: #c9ff2e;
  --green-dim: rgba(201, 255, 46, 0.16);
  --red: #ff315e;
  --red-dim: rgba(255, 49, 94, 0.16);
  --gold: #b88cff;
  --blue: #00b8ff;
  --purple: #8a5cff;
  --purple-soft: rgba(138, 92, 255, 0.2);
  --panel: #09264a;
  --panel-deep: #030d1b;
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
  --glow: none;
  --font: 'Rajdhani', sans-serif;
  --display-font: 'Orbitron', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  background: #020711;
}

body {
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(135deg, rgba(0,184,255,0.06) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 18% 12%, rgba(255, 7, 95, 0.26), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(255, 225, 0, 0.15), transparent 26%),
    linear-gradient(180deg, #071b34 0%, #061225 48%, #030711 100%);
  font-weight: 600;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

body::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(0,184,255,0.08) 47% 47.25%, transparent 47.25% 100%),
    linear-gradient(0deg, transparent 0 62%, rgba(255,7,95,0.09) 62% 62.2%, transparent 62.2% 100%);
  opacity: 0.8;
}

body::after {
  width: 420px;
  height: 420px;
  right: -190px;
  bottom: -170px;
  background: conic-gradient(from 30deg, rgba(201,255,46,0.16), transparent, rgba(0,184,255,0.15), transparent, rgba(255,7,95,0.14));
  clip-path: polygon(50% 0, 61% 32%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 32%);
  filter: blur(1px);
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4, h5, h6,
.logo,
.btn,
.stat-label,
.form-group label,
th,
.trade-tab,
.nav-item {
  font-family: var(--display-font);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.app-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0,184,255,0.18) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0, transparent 180px),
    rgba(4, 15, 31, 0.9);
  box-shadow: none;
}

.main-content::before {
  content: "";
  position: absolute;
  inset: 84px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 18px rgba(0,184,255,0.45);
  border-radius: 0;
}

.top-bar {
  position: sticky;
  inset: auto;
  top: 0;
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #08284d, #031326);
  border-bottom: 2px solid rgba(0,184,255,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.34);
  backdrop-filter: none;
}

.top-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 260px;
  background: linear-gradient(135deg, #fff 0 28%, var(--accent) 28% 61%, transparent 61%);
  opacity: 0.96;
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 240px;
  padding: 0 22px 0 84px;
  color: #fff;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: #06111f;
  border: 2px solid rgba(255,255,255,0.78);
  color: var(--gold);
  box-shadow: 0 0 18px rgba(255,225,0,0.28);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  font-size: 0;
}

.logo-icon::before {
  content: "\f6e8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
}

.logo-text {
  display: inline;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(0,184,255,0.28);
}

.logo-text .text-accent {
  color: var(--gold) !important;
}

.top-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.top-nav::-webkit-scrollbar {
  height: 0;
}

.nav-item {
  position: relative;
  width: auto;
  min-width: 132px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  color: var(--text-secondary);
  background: rgba(7, 25, 48, 0.9);
  border: 1px solid rgba(0,184,255,0.22);
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.nav-item span {
  display: inline;
  font-size: 12px;
}

.nav-item i {
  width: auto;
  font-size: 16px;
  color: var(--blue);
}

.nav-item::before {
  display: block;
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: transparent;
  transform: none;
}

.nav-item:hover,
.nav-item.active,
.nav-item:nth-child(2).active,
.nav-item:nth-child(2):hover,
.nav-item:nth-child(3).active,
.nav-item:nth-child(3):hover,
.nav-item:nth-child(4).active,
.nav-item:nth-child(4):hover,
.nav-item:nth-child(5).active,
.nav-item:nth-child(5):hover,
.nav-item:nth-child(6).active,
.nav-item:nth-child(6):hover,
.nav-admin.active,
.nav-admin:hover {
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, #114b86, #08284d);
  border-color: rgba(0,184,255,0.5);
  box-shadow: inset 0 -4px 0 var(--accent), 0 0 22px rgba(0,184,255,0.16);
  transform: none;
}

.nav-item.active::before,
.nav-item:hover::before {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(255,225,0,0.62);
}

.top-bar-right {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  width: auto;
  margin: 0;
}

.header-stats {
  display: flex;
  height: 100%;
  gap: 0;
}

.balance-display,
.points-display,
.claim-account-btn,
.user-avatar,
.logout-btn-header {
  min-width: 98px;
  height: 84px;
  border-radius: 0;
  border: 1px solid rgba(0,184,255,0.22);
  background: rgba(5, 20, 39, 0.96);
  color: #fff;
  box-shadow: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.balance-display,
.points-display {
  padding: 0 20px;
  font-family: var(--display-font);
  color: var(--gold);
}

.points-display {
  color: var(--blue);
}

.balance-display i,
.points-display i {
  color: var(--green);
}

.claim-account-btn {
  color: #06111f;
  background: linear-gradient(180deg, #e9d8ff, #d2c2ff);
}

.claim-account-btn span {
  display: inline;
}

.user-avatar {
  min-width: 70px;
  justify-content: center;
  color: var(--gold);
  font-family: var(--display-font);
  font-weight: 900;
  overflow: hidden;
}

.logout-btn-header {
  min-width: 58px;
  justify-content: center;
  color: var(--text-secondary);
}

.content-area {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: clamp(24px, 3vw, 46px);
}

.page-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin: 0 0 24px;
  padding: 22px 28px;
  background:
    repeating-linear-gradient(135deg, rgba(0,184,255,0.08) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, rgba(10, 55, 103, 0.96), rgba(4, 18, 37, 0.86));
  border: 1px solid rgba(0,184,255,0.35);
  border-left: 5px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  box-shadow: var(--shadow);
}

.page-header::before {
  content: "HERMETO.FUN MARKET ARENA";
  position: absolute;
  top: 8px;
  right: 26px;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 10px;
  letter-spacing: 2px;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 0.96;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(0,184,255,0.22);
}

.page-header h1 i {
  color: var(--gold);
  margin-right: 10px;
}

.page-header p {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 17px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.token-info-bar,
.chart-container,
.holding-info,
.trade-summary,
.table-wrap,
.modal,
.admin-stat,
.token-mini-item,
.badge-item,
.money-presets button {
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(13, 44, 82, 0.96), rgba(5, 17, 34, 0.96));
  border: 1px solid rgba(0,184,255,0.28);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.modal {
  position: relative;
  padding: 24px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.card::after,
.auth-card::before,
.wallet-balance-card::after,
.investment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--accent) 0 3px, transparent 3px calc(100% - 3px), var(--blue) calc(100% - 3px)),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
  opacity: 0.72;
}

/* Card hover effects removed - all cards have same background color */

.card-header {
  position: relative;
  z-index: 1;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,184,255,0.22);
}

.card-header h2,
.card-header h3,
.profile-details h1,
.token-name-group h2,
.portfolio-token-name,
.badge-name,
.token-mini-symbol {
  color: #fff;
  font-family: var(--display-font);
  font-weight: 800;
  letter-spacing: 1px;
}

.card-header h3 i,
.card-header h2 i {
  color: var(--gold);
}

.stat-card {
  min-height: 138px;
  padding: 20px 22px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #0d3767, #06182f);
  border: none;
}

.stat-card:nth-child(2n) {
  border-left-color: var(--accent);
}

.stat-card:nth-child(3n) {
  border-left-color: var(--gold);
}

.stat-label {
  position: relative;
  z-index: 1;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.stat-value,
.wallet-balance-amount,
.token-price-big {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(0,184,255,0.22);
}

.text-green,
.wallet-balance-amount {
  color: var(--green) !important;
  text-shadow: 0 0 16px rgba(201,255,46,0.24);
}

.text-red {
  color: var(--red) !important;
  text-shadow: 0 0 16px rgba(255,49,94,0.2);
}

.text-gold,
.text-accent {
  color: var(--gold) !important;
  text-shadow: 0 0 16px rgba(255,225,0,0.22);
}

.text-muted,
.portfolio-token-symbol,
.badge-date,
.token-mini-name,
.token-mini-subtext {
  color: var(--text-muted) !important;
}

.btn,
.money-presets button,
.admin-tab {
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 0;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}

.btn-primary {
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #ff176c, #c90047);
  border: 1px solid rgba(255,255,255,0.18);
}

.btn-primary:hover {
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.14) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #ff3f84, #e00055);
}

.btn-green {
  color: #06111f;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #eaff36, #b9f000);
  border: 1px solid rgba(255,255,255,0.22);
}

.btn-green:hover {
  color: #06111f;
  background: linear-gradient(180deg, #f5ff74, #c9ff2e);
}

.btn-red {
  color: #fff;
  background: linear-gradient(180deg, #ff4c75, #cf143e);
}

.btn-outline {
  color: var(--blue);
  background: rgba(3, 13, 27, 0.72);
  border: 1px solid rgba(0,184,255,0.42);
}

.btn-outline:hover {
  color: var(--gold);
  background: rgba(10, 44, 82, 0.92);
  border-color: var(--gold);
}

.btn:disabled,
button:disabled {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 3px, transparent 3px 9px),
    #111a25 !important;
  color: rgba(159, 194, 226, 0.42) !important;
  border-color: rgba(159, 194, 226, 0.12) !important;
}

.form-control,
select.form-control,
textarea.form-control {
  min-height: 48px;
  padding: 12px 14px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 13, 27, 0.96), rgba(4, 18, 37, 0.96));
  border: 1px solid rgba(0,184,255,0.34);
  border-radius: 0;
  font-family: var(--mono);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 0 18px rgba(0,184,255,0.06);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255,225,0,0.14), 0 0 22px rgba(255,225,0,0.1);
  background: #020a16;
}

.form-control::placeholder {
  color: rgba(159, 194, 226, 0.45);
}

.form-group label,
th {
  color: var(--blue);
}

.input-group {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-group .form-control {
  border-radius: 0;
}

.input-group .btn {
  border-radius: 0;
}

.table-wrap {
  overflow: auto;
  background: rgba(4, 18, 37, 0.92);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 8px),
    #09264a;
  color: var(--blue);
  font-size: 11px;
}

th,
td {
  border-bottom: 1px solid rgba(0,184,255,0.16);
}

td {
  color: var(--text-primary);
}

tr:hover td {
  background: rgba(0,184,255,0.07);
}

.trade-row-buy td {
  background: linear-gradient(90deg, rgba(201,255,46,0.08), transparent);
}

.trade-row-sell td {
  background: linear-gradient(90deg, rgba(255,49,94,0.08), transparent);
}

.trade-token-logo,
.portfolio-token-logo,
.token-mini-logo,
.token-logo,
.lb-avatar,
.profile-avatar-lg,
.badge-emblem,
.user-avatar img {
  border-radius: 0;
  border: 2px solid rgba(0,184,255,0.4);
  box-shadow: 0 0 18px rgba(0,184,255,0.14);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.token-logo-fallback,
.lb-avatar,
.user-avatar {
  background:
    linear-gradient(180deg, rgba(138,92,255,0.92), rgba(255,7,95,0.88));
}

.trade-discovery-grid {
  gap: 14px;
}

.token-mini-item {
  padding: 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.token-mini-value,
.portfolio-value,
.portfolio-pnl,
.text-mono,
.ic-value {
  font-family: var(--mono);
}

.token-info-bar {
  border-left: 5px solid var(--gold);
  gap: 18px;
}

.token-stat {
  border-left-color: rgba(0,184,255,0.18);
}

.chart-container {
  min-height: 540px;
  background:
    radial-gradient(circle at center, rgba(0,184,255,0.08), transparent 44%),
    linear-gradient(180deg, rgba(6, 31, 59, 0.98), rgba(2, 10, 22, 0.98));
}

.trade-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: 18px;
}

.trade-panel .card {
  top: 104px;
  border-top: 1px solid rgba(0,184,255,0.28);
}

.trade-tabs {
  gap: 0;
  padding: 0;
  background: rgba(3, 13, 27, 0.92);
  border: 1px solid rgba(0,184,255,0.32);
  border-radius: 0;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18);
}

.trade-tab {
  min-height: 48px;
  border-radius: 0;
  color: var(--text-muted);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.trade-tab.active-buy {
  color: #06111f;
  background: var(--green);
  box-shadow: 0 0 18px rgba(201,255,46,0.18);
}

.trade-tab.active-sell {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255,7,95,0.2);
}

.holding-info,
.trade-summary {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px),
    rgba(3, 13, 27, 0.88);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.trade-summary-row {
  border-bottom-color: rgba(0,184,255,0.16);
}

.money-presets {
  gap: 8px;
}

.money-presets button {
  color: var(--text-secondary);
  background: rgba(3, 13, 27, 0.82);
  border-color: rgba(0,184,255,0.24);
}

.money-presets button:hover {
  color: #06111f;
  background: var(--gold);
}

.badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.badge-item {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.badge-emblem {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.42), transparent 25%),
    linear-gradient(180deg, var(--badge-color), rgba(3,13,27,0.9));
}

.wallet-balance-card {
  text-align: left;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, rgba(255,7,95,0.24), rgba(9,38,74,0.98) 38%, rgba(3,13,27,0.98));
  border-left: 5px solid var(--gold);
}

.wallet-actions {
  justify-content: flex-start;
}

.profile-header {
  min-height: 184px;
  background:
    linear-gradient(90deg, rgba(255,7,95,0.22), rgba(9,38,74,0.94)),
    linear-gradient(180deg, #0b3565, #06182f);
  border-left: 5px solid var(--accent);
}

.profile-details p {
  color: var(--text-secondary);
}

.profile-cover-btn,
.profile-avatar-btn,
.status-badge {
  border-radius: 0;
  background: rgba(3, 13, 27, 0.82);
  color: var(--blue);
  border-color: rgba(0,184,255,0.34);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.investment-card h3 {
  color: var(--gold);
}

.investment-card h3::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255,7,95,0.45);
}

.ic-row {
  border-bottom-color: rgba(0,184,255,0.16);
}

.ic-label {
  color: var(--blue);
}

.rank-cell {
  font-family: var(--display-font);
}

.rank-1,
.rank-2,
.rank-3 {
  text-shadow: 0 0 14px currentColor;
}

.rank-1 {
  color: var(--gold);
}

.rank-2 {
  color: var(--blue);
}

.rank-3 {
  color: var(--accent);
}

.alert,
.toast {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.alert-success,
.status-active,
.toast-success {
  background: rgba(201,255,46,0.12);
  color: var(--green);
  border-color: rgba(201,255,46,0.32);
}

.alert-error,
.status-inactive,
.toast-error {
  background: rgba(255,49,94,0.12);
  color: var(--red);
  border-color: rgba(255,49,94,0.32);
}

.toast,
.toast-info {
  background: rgba(4, 18, 37, 0.96);
  color: var(--text-primary);
  border-left: 4px solid var(--blue);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-overlay {
  background: rgba(1, 5, 12, 0.76);
  backdrop-filter: blur(8px);
}

.modal h2 {
  color: #fff;
}

.crypto-ticker-bar {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 34px;
  background: linear-gradient(180deg, #08284d, #030d1b);
  border: 0;
  border-top: 1px solid rgba(0,184,255,0.35);
  border-radius: 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
  backdrop-filter: none;
}

.ticker-item {
  color: var(--text-secondary);
  font-family: var(--mono);
}

.token-banner-container,
.dashboard-slider {
  border-radius: 0;
  border: 1px solid rgba(0,184,255,0.28);
  background: linear-gradient(180deg, rgba(13, 44, 82, 0.96), rgba(5, 17, 34, 0.96));
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.token-banner-overlay,
.dashboard-slider .token-banner-overlay {
  background: linear-gradient(90deg, rgba(3,13,27,0.88), rgba(9,38,74,0.6) 58%, rgba(3,13,27,0.82));
}

.token-banner-title,
.token-banner-subtitle,
.dashboard-slider .token-banner-title,
.dashboard-slider .token-banner-subtitle {
  color: #fff;
}

.token-banner-kicker,
.dashboard-slider .token-banner-kicker {
  color: var(--green);
}

.token-banner-chain,
.token-banner-address,
.token-banner-stats {
  border-radius: 0;
  background: rgba(3, 13, 27, 0.78);
  color: var(--text-primary);
  border-color: rgba(0,184,255,0.2);
}

.dashboard-token-logo {
  border-radius: 0;
  border: 2px solid rgba(0,184,255,0.44);
}

.auth-layout {
  background:
    repeating-linear-gradient(135deg, rgba(0,184,255,0.06) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 20% 15%, rgba(255,7,95,0.22), transparent 28%),
    linear-gradient(180deg, #071b34, #030711);
}

.auth-card {
  max-width: 480px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(13, 44, 82, 0.98), rgba(5, 17, 34, 0.98));
}

.auth-card .logo-text {
  display: inline;
  color: #fff;
}

.auth-card h1 {
  color: #fff;
}

.auth-subtitle,
.auth-footer {
  color: var(--text-secondary);
}

@media (max-width: 1180px) {
  .top-bar {
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: auto;
  }

  .top-bar::before {
    width: 190px;
  }

  .logo {
    min-width: 180px;
    padding-left: 62px;
  }

  .top-nav {
    justify-content: flex-start;
    grid-column: 2;
    overflow-x: auto;
  }

  .nav-item {
    min-width: 92px;
    height: 68px;
    padding: 0 14px;
  }

  .nav-item span {
    display: none;
  }

  .top-bar-right {
    grid-column: 1 / -1;
    height: 54px;
    border-top: 1px solid rgba(0,184,255,0.2);
  }

  .balance-display,
  .points-display,
  .claim-account-btn,
  .user-avatar,
  .logout-btn-header {
    height: 54px;
  }

  .content-area {
    padding: 24px 18px 70px;
  }

  .trade-layout {
    grid-template-columns: 1fr;
  }

  .trade-panel .card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: flex;
    flex-wrap: wrap;
  }

  .top-bar::before {
    width: 154px;
  }

  .logo {
    min-width: 154px;
    min-height: 64px;
    padding-left: 54px;
  }

  .logo-text {
    font-size: 14px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    height: 58px;
  }

  .nav-item {
    min-width: 58px;
    height: 58px;
  }

  .top-bar-right {
    margin-left: auto;
    height: 64px;
    border-top: 0;
  }

  .header-stats,
  .claim-account-btn span {
    display: none;
  }

  .user-avatar,
  .logout-btn-header,
  .claim-account-btn {
    min-width: 52px;
    height: 64px;
  }

  .page-header {
    display: block;
    padding: 20px;
  }

  .page-header::before {
    position: static;
    display: block;
    margin-bottom: 8px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .card,
  .auth-card,
  .investment-card,
  .wallet-balance-card,
  .profile-header,
  .modal {
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
    gap: 8px;
  }

  .input-group .form-control,
  .input-group .btn {
    width: 100%;
  }
}

/* Hermeto Black Book trading grimoire */
:root {
  --bg-primary: #05030a;
  --bg-secondary: #100918;
  --bg-card: rgba(12, 8, 19, 0.9);
  --bg-card-hover: rgba(20, 12, 30, 0.96);
  --bg-input: rgba(5, 3, 10, 0.86);
  --border: rgba(167, 34, 255, 0.34);
  --border-hover: rgba(70, 255, 150, 0.56);
  --text-primary: #fff9ef;
  --text-secondary: #d8c9e6;
  --text-muted: #8f7fa1;
  --accent: #a722ff;
  --accent-hover: #cf68ff;
  --green: #55ff9b;
  --green-dim: rgba(85, 255, 155, 0.14);
  --red: #ff4f7e;
  --red-dim: rgba(255, 79, 126, 0.14);
  --gold: #b88cff;
  --blue: #50d8ff;
  --purple: #a722ff;
  --purple-soft: rgba(167, 34, 255, 0.18);
  --panel: #0b0612;
  --panel-deep: #030207;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.56);
  --glow: 0 0 0 1px rgba(167, 34, 255, 0.42), 0 0 34px rgba(167, 34, 255, 0.18);
  --font: 'Rajdhani', sans-serif;
  --display-font: 'Cinzel', serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  background: #05030a;
}

body {
  color: var(--text-primary);
  background:
    radial-gradient(circle at 50% -10%, rgba(167, 34, 255, 0.34), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(85, 255, 155, 0.13), transparent 22%),
    radial-gradient(circle at 88% 22%, rgba(255, 159, 67, 0.15), transparent 22%),
    linear-gradient(180deg, #08040f 0%, #05030a 48%, #020106 100%);
  font-family: var(--font);
  font-weight: 500;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 28%, rgba(255,255,255,0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 18%, rgba(255,255,255,0.07) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 70%, rgba(85,255,155,0.08) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent, rgba(167,34,255,0.05), transparent);
  background-size: 220px 220px, 280px 280px, 240px 240px, 100% 100%;
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  width: 720px;
  height: 720px;
  left: 50%;
  top: 50%;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    conic-gradient(from 0deg, transparent, rgba(167,34,255,0.16), transparent, rgba(85,255,155,0.12), transparent, rgba(255,159,67,0.12), transparent);
  border-radius: 50%;
  filter: blur(8px);
  mask: radial-gradient(circle, transparent 0 38%, #000 39% 40%, transparent 41% 100%);
}

a {
  color: var(--green);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4, h5, h6,
.logo,
.page-header h1,
.card-header h2,
.card-header h3 {
  font-family: var(--display-font);
  letter-spacing: 0.04em;
  text-transform: none;
}

.btn,
.form-group label,
.stat-label,
th,
.trade-tab,
.nav-item {
  font-family: var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-layout {
  position: relative;
  z-index: 1;
  padding: clamp(14px, 2vw, 26px);
  min-height: 100vh;
}

.main-content {
  position: relative;
  width: min(1540px, 100%);
  min-height: calc(100vh - clamp(28px, 4vw, 52px));
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(167, 34, 255, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 220px),
    radial-gradient(circle at 52% 0%, rgba(167, 34, 255, 0.2), transparent 30%),
    rgba(5, 3, 10, 0.82);
  box-shadow: var(--shadow), inset 0 0 80px rgba(167, 34, 255, 0.08);
}

.main-content::before {
  content: "MENTALISM  ·  VIBRATION  ·  CAUSE AND EFFECT";
  position: absolute;
  left: 50%;
  top: 98px;
  z-index: 0;
  transform: translateX(-50%);
  width: min(860px, 86%);
  height: auto;
  padding: 10px 22px;
  text-align: center;
  color: rgba(255, 249, 239, 0.34);
  font-family: var(--display-font);
  font-size: 11px;
  letter-spacing: 0.36em;
  border-top: 1px solid rgba(167, 34, 255, 0.26);
  border-bottom: 1px solid rgba(85, 255, 155, 0.2);
  background: linear-gradient(90deg, transparent, rgba(167, 34, 255, 0.08), transparent);
  box-shadow: none;
  border-radius: 0;
}

.main-content::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -170px;
  width: 430px;
  height: 430px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,0.1) 0 2px, transparent 3px),
    conic-gradient(from 20deg, rgba(167,34,255,0.2), transparent, rgba(85,255,155,0.14), transparent, rgba(255,159,67,0.18), transparent);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.8;
}

.top-bar,
.content-area {
  position: relative;
  z-index: 1;
}

.top-bar {
  position: sticky;
  top: clamp(14px, 2vw, 26px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: auto;
  width: auto;
  padding: 18px 22px;
  background: rgba(8, 4, 15, 0.76);
  border: 0;
  border-bottom: 1px solid rgba(167, 34, 255, 0.28);
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.top-bar::before {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  width: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--green), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.logo {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  color: var(--text-primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.24), transparent 20%),
    conic-gradient(from 15deg, var(--accent), var(--green), var(--gold), var(--accent));
  border: 1px solid rgba(255,255,255,0.26);
  color: #05030a;
  box-shadow: 0 0 24px rgba(167,34,255,0.32);
  clip-path: none;
  font-size: 0;
}

.logo-icon::before {
  content: "\f6e8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
}

.logo-text {
  display: inline;
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(167,34,255,0.32);
}

.logo-text .text-accent {
  color: var(--green) !important;
}

.top-nav {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.top-nav::-webkit-scrollbar {
  height: 0;
}

.nav-item {
  width: auto;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  gap: 8px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  clip-path: none;
}

.nav-item span {
  display: inline;
  font-size: 11px;
}

.nav-item i {
  color: var(--accent-hover);
  font-size: 13px;
}

.nav-item::before {
  display: none;
}

.nav-item:hover,
.nav-item.active,
.nav-item:nth-child(2).active,
.nav-item:nth-child(2):hover,
.nav-item:nth-child(3).active,
.nav-item:nth-child(3):hover,
.nav-item:nth-child(4).active,
.nav-item:nth-child(4):hover,
.nav-item:nth-child(5).active,
.nav-item:nth-child(5):hover,
.nav-item:nth-child(6).active,
.nav-item:nth-child(6):hover,
.nav-admin.active,
.nav-admin:hover {
  color: var(--text-primary);
  background: rgba(167, 34, 255, 0.12);
  border-color: rgba(167, 34, 255, 0.34);
  box-shadow: 0 0 22px rgba(167,34,255,0.16), inset 0 0 18px rgba(85,255,155,0.04);
  transform: translateY(-1px);
}

.nav-item.active i,
.nav-item:hover i {
  color: var(--green);
}

.top-bar-right {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  width: auto;
  height: auto;
  margin: 0;
}

.header-stats {
  display: flex;
  gap: 8px;
  height: auto;
}

.balance-display,
.points-display,
.claim-account-btn,
.user-avatar,
.logout-btn-header {
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(167, 34, 255, 0.24);
  background: rgba(5, 3, 10, 0.74);
  color: var(--text-primary);
  box-shadow: none;
  clip-path: none;
}

.balance-display,
.points-display {
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 12px;
}

.balance-display {
  color: var(--green);
}

.points-display {
  color: var(--gold);
}

.claim-account-btn {
  color: #05030a;
  background: var(--green);
}

.user-avatar {
  width: 40px;
  justify-content: center;
  color: #05030a;
  font-family: var(--display-font);
  background: linear-gradient(135deg, var(--gold), var(--green));
  overflow: hidden;
}

.logout-btn-header {
  width: 40px;
  justify-content: center;
  color: var(--text-muted);
}

.content-area {
  width: 100%;
  max-width: 1480px;
  min-height: auto;
  margin: 0 auto;
  padding: clamp(58px, 6vw, 92px) clamp(18px, 3vw, 42px) 74px;
}

.page-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
  gap: 22px;
  align-items: end;
  margin: 0 0 26px;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(85,255,155,0.12), transparent 36%),
    radial-gradient(circle at 88% 20%, rgba(255,159,67,0.12), transparent 30%),
    linear-gradient(135deg, rgba(16, 9, 24, 0.94), rgba(5, 3, 10, 0.88));
  border: 1px solid rgba(167, 34, 255, 0.42);
  border-left: 0;
  border-radius: 18px;
  clip-path: none;
  box-shadow: var(--shadow), var(--glow);
}

.page-header::before {
  content: "Hermeto Black Book";
  position: absolute;
  left: 28px;
  top: -12px;
  display: inline-flex;
  padding: 4px 12px;
  color: #05030a;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 999px;
  font-family: var(--display-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header::after {
  content: "I reveal patterns";
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(255, 249, 239, 0.34);
  font-family: var(--display-font);
  font-size: clamp(24px, 4vw, 56px);
  line-height: 1;
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 800;
  text-shadow: 0 0 26px rgba(167,34,255,0.22);
}

.page-header h1 i {
  color: var(--green);
  margin-right: 10px;
}

.page-header p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.45;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.token-info-bar,
.chart-container,
.holding-info,
.trade-summary,
.table-wrap,
.modal,
.admin-stat,
.token-mini-item,
.badge-item,
.money-presets button {
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 52%),
    rgba(12, 8, 19, 0.9);
  border: 1px solid rgba(167, 34, 255, 0.3);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(255,255,255,0.025);
  clip-path: none;
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.modal {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card::after,
.auth-card::before,
.wallet-balance-card::after,
.investment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -20%, rgba(167,34,255,0.14), transparent 38%),
    linear-gradient(90deg, rgba(85,255,155,0.34), transparent 12%, transparent 88%, rgba(255,159,67,0.22));
  opacity: 0.6;
}

/* Hover effects removed from non-clickable elements */

.card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(167, 34, 255, 0.22);
}

.card-header h2,
.card-header h3,
.profile-details h1,
.token-name-group h2,
.portfolio-token-name,
.badge-name,
.token-mini-symbol {
  color: var(--text-primary);
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-header h3 i,
.card-header h2 i {
  color: var(--gold);
}

.stat-card {
  min-height: 148px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(167,34,255,0.16), transparent 34%),
    rgba(12, 8, 19, 0.9);
  border: none;
}

.stat-card:nth-child(2n) {
  border-top-color: rgba(255,159,67,0.34);
}

.stat-card:nth-child(3n) {
  border-top-color: rgba(80,216,255,0.34);
}

.stat-label {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-value,
.wallet-balance-amount,
.token-price-big {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-family: var(--display-font);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 700;
  text-shadow: 0 0 24px rgba(167,34,255,0.2);
}

.text-green,
.wallet-balance-amount {
  color: var(--green) !important;
  text-shadow: 0 0 18px rgba(85,255,155,0.2);
}

.text-red {
  color: var(--red) !important;
  text-shadow: 0 0 18px rgba(255,79,126,0.18);
}

.text-gold,
.text-accent {
  color: var(--gold) !important;
  text-shadow: 0 0 18px rgba(255,159,67,0.18);
}

.text-muted,
.portfolio-token-symbol,
.badge-date,
.token-mini-name,
.token-mini-subtext {
  color: var(--text-muted) !important;
}

.btn,
.money-presets button,
.admin-tab {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  clip-path: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 14px 28px rgba(0,0,0,0.24);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b16a4);
  border: 1px solid rgba(255,255,255,0.16);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.btn-green {
  color: #05030a;
  background: linear-gradient(135deg, var(--green), #aaffca);
  border: 1px solid rgba(255,255,255,0.16);
}

.btn-green:hover {
  color: #05030a;
  background: linear-gradient(135deg, #b7ffd3, var(--green));
}

.btn-red {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #b91651);
}

.btn-outline {
  color: var(--text-secondary);
  background: rgba(5, 3, 10, 0.56);
  border: 1px solid rgba(167, 34, 255, 0.34);
}

.btn-outline:hover {
  color: var(--green);
  background: rgba(167, 34, 255, 0.14);
  border-color: rgba(85, 255, 155, 0.46);
}

.btn:disabled,
button:disabled {
  color: rgba(216, 201, 230, 0.36) !important;
  background: rgba(18, 14, 24, 0.72) !important;
  border-color: rgba(216, 201, 230, 0.1) !important;
}

.form-control,
select.form-control,
textarea.form-control {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text-primary);
  background: rgba(5, 3, 10, 0.74);
  border: 1px solid rgba(167, 34, 255, 0.34);
  border-radius: 10px;
  font-family: var(--mono);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.24);
}

.form-control:focus {
  border-color: rgba(85, 255, 155, 0.62);
  box-shadow: 0 0 0 3px rgba(85,255,155,0.11), inset 0 0 18px rgba(0,0,0,0.24);
  background: rgba(3, 2, 7, 0.88);
}

.form-control::placeholder {
  color: rgba(216, 201, 230, 0.42);
}

.form-group label,
th {
  color: var(--green);
}

.input-group {
  gap: 8px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-group .form-control,
.input-group .btn {
  border-radius: 999px;
}

.table-wrap {
  overflow: auto;
}

th {
  color: var(--green);
  background: rgba(167, 34, 255, 0.12);
  font-size: 11px;
}

th,
td {
  border-bottom: 1px solid rgba(167, 34, 255, 0.16);
}

td {
  color: var(--text-primary);
}

tr:hover td {
  background: rgba(167, 34, 255, 0.08);
}

.trade-row-buy td {
  background: linear-gradient(90deg, rgba(85,255,155,0.07), transparent);
}

.trade-row-sell td {
  background: linear-gradient(90deg, rgba(255,79,126,0.07), transparent);
}

.trade-token-logo,
.portfolio-token-logo,
.token-mini-logo,
.token-logo,
.lb-avatar,
.profile-avatar-lg,
.badge-emblem,
.user-avatar img {
  border-radius: 50%;
  border: 1px solid rgba(167, 34, 255, 0.46);
  box-shadow: 0 0 18px rgba(167,34,255,0.16);
  clip-path: none;
}

.token-logo-fallback,
.lb-avatar {
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #05030a;
}

.trade-discovery-grid {
  gap: 16px;
}

.token-mini-item {
  padding: 15px;
}

.token-mini-value,
.portfolio-value,
.portfolio-pnl,
.text-mono,
.ic-value {
  font-family: var(--mono);
}

.token-info-bar {
  border-left: 0;
  gap: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(85,255,155,0.1), transparent 34%),
    rgba(12, 8, 19, 0.9);
}

.token-info-bar::before {
  content: "Advisor";
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #05030a;
  background: var(--green);
  font-family: var(--display-font);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.token-stat {
  border-left-color: rgba(167, 34, 255, 0.18);
}

.chart-container {
  min-height: 540px;
  background:
    radial-gradient(circle at center, rgba(85,255,155,0.08), transparent 42%),
    radial-gradient(circle at 76% 20%, rgba(167,34,255,0.14), transparent 30%),
    rgba(5, 3, 10, 0.82);
}

.trade-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: 18px;
}

.trade-panel .card {
  top: 116px;
  border-top: 1px solid rgba(167, 34, 255, 0.3);
}

.trade-tabs {
  gap: 8px;
  padding: 6px;
  background: rgba(5, 3, 10, 0.72);
  border: 1px solid rgba(167, 34, 255, 0.26);
  border-radius: 999px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.22);
}

.trade-tab {
  min-height: 42px;
  border-radius: 999px;
  color: var(--text-muted);
  clip-path: none;
}

.trade-tab.active-buy {
  color: #05030a;
  background: var(--green);
  box-shadow: 0 0 18px rgba(85,255,155,0.18);
}

.trade-tab.active-sell {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255,79,126,0.18);
}

.holding-info,
.trade-summary {
  background: rgba(5, 3, 10, 0.62);
}

.trade-summary-row {
  border-bottom-color: rgba(167, 34, 255, 0.16);
}

.money-presets {
  gap: 8px;
}

.money-presets button {
  color: var(--text-secondary);
  background: rgba(5, 3, 10, 0.56);
  border-color: rgba(167, 34, 255, 0.28);
}

.money-presets button:hover {
  color: #05030a;
  background: var(--gold);
}

.badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.badge-emblem {
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.42), transparent 26%),
    linear-gradient(135deg, var(--badge-color), rgba(167,34,255,0.82));
}

.wallet-balance-card {
  text-align: left;
  background:
    radial-gradient(circle at 10% 16%, rgba(85,255,155,0.12), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(255,159,67,0.12), transparent 28%),
    rgba(12, 8, 19, 0.9);
}

.wallet-actions {
  justify-content: flex-start;
}

.profile-header {
  min-height: 184px;
  background:
    linear-gradient(135deg, rgba(167,34,255,0.2), rgba(5,3,10,0.86)),
    rgba(12, 8, 19, 0.9);
}

.profile-details p {
  color: var(--text-secondary);
}

.profile-cover-btn,
.profile-avatar-btn,
.status-badge {
  border-radius: 999px;
  background: rgba(5, 3, 10, 0.72);
  color: var(--green);
  border-color: rgba(167, 34, 255, 0.34);
  clip-path: none;
}

.investment-card h3 {
  color: var(--green);
}

.investment-card h3::before {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255,159,67,0.38);
}

.ic-row {
  border-bottom-color: rgba(167, 34, 255, 0.16);
}

.ic-label {
  color: var(--text-muted);
}

.rank-cell {
  font-family: var(--display-font);
}

.rank-1,
.rank-2,
.rank-3 {
  text-shadow: 0 0 14px currentColor;
}

.rank-1 {
  color: var(--gold);
}

.rank-2 {
  color: var(--green);
}

.rank-3 {
  color: var(--accent-hover);
}

.alert,
.toast {
  border-radius: 12px;
  clip-path: none;
}

.alert-success,
.status-active,
.toast-success {
  background: rgba(85,255,155,0.12);
  color: var(--green);
  border-color: rgba(85,255,155,0.3);
}

.alert-error,
.status-inactive,
.toast-error {
  background: rgba(255,79,126,0.12);
  color: var(--red);
  border-color: rgba(255,79,126,0.3);
}

.toast,
.toast-info {
  background: rgba(12, 8, 19, 0.96);
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-overlay {
  background: rgba(2, 1, 6, 0.78);
  backdrop-filter: blur(10px);
}

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

.crypto-ticker-bar {
  left: clamp(14px, 2vw, 26px);
  right: clamp(14px, 2vw, 26px);
  bottom: 10px;
  width: auto;
  height: 34px;
  background: rgba(12, 8, 19, 0.82);
  border: 1px solid rgba(167, 34, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
}

.ticker-item {
  color: var(--text-secondary);
  font-family: var(--mono);
}

.token-banner-container,
.dashboard-slider {
  border-radius: 18px;
  border: 1px solid rgba(167, 34, 255, 0.3);
  background: rgba(12, 8, 19, 0.9);
  box-shadow: var(--shadow);
  clip-path: none;
}

.token-banner-overlay,
.dashboard-slider .token-banner-overlay {
  background: linear-gradient(90deg, rgba(5,3,10,0.88), rgba(167,34,255,0.18) 58%, rgba(5,3,10,0.82));
}

.token-banner-title,
.token-banner-subtitle,
.dashboard-slider .token-banner-title,
.dashboard-slider .token-banner-subtitle {
  color: var(--text-primary);
}

.token-banner-kicker,
.dashboard-slider .token-banner-kicker {
  color: var(--green);
}

.token-banner-chain,
.token-banner-address,
.token-banner-stats {
  border-radius: 12px;
  background: rgba(5, 3, 10, 0.7);
  color: var(--text-primary);
  border-color: rgba(167,34,255,0.2);
}

.dashboard-token-logo {
  border-radius: 50%;
  border: 1px solid rgba(167,34,255,0.46);
}

.auth-layout {
  background:
    radial-gradient(circle at 50% 8%, rgba(167,34,255,0.28), transparent 30%),
    radial-gradient(circle at 16% 22%, rgba(85,255,155,0.1), transparent 24%),
    linear-gradient(180deg, #08040f, #05030a);
}

.auth-card {
  max-width: 480px;
}

.auth-card .logo-text {
  display: inline;
}

.auth-card h1 {
  color: var(--text-primary);
}

.auth-subtitle,
.auth-footer {
  color: var(--text-secondary);
}

@media (max-width: 1180px) {
  .top-bar {
    top: 0;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .nav-item span {
    display: none;
  }

  .top-bar-right {
    justify-content: flex-end;
  }

  .balance-display span,
  .points-display span,
  .claim-account-btn span {
    display: none;
  }

  .content-area {
    padding-top: 52px;
  }

  .page-header {
    grid-template-columns: 1fr;
  }

  .page-header::after {
    display: none;
  }

  .trade-layout {
    grid-template-columns: 1fr;
  }

  .trade-panel .card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .app-layout {
    padding: 0;
  }

  .main-content {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .main-content::before {
    top: 128px;
    width: 94%;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .top-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 0;
  }

  .logo-text {
    font-size: 15px;
  }

  .top-nav {
    width: 100%;
    height: auto;
    padding: 4px 0;
  }

  .nav-item {
    height: 38px;
    padding: 0 12px;
  }

  .top-bar-right {
    gap: 6px;
  }

  .header-stats {
    display: none;
  }

  .user-avatar,
  .logout-btn-header,
  .claim-account-btn {
    width: 38px;
    height: 38px;
  }

  .content-area {
    padding: 54px 14px 70px;
  }

  .page-header {
    display: block;
    padding: 24px 18px;
  }

  .page-header::before {
    left: 18px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
    gap: 8px;
  }

  .input-group .form-control,
  .input-group .btn {
    width: 100%;
  }

  .crypto-ticker-bar {
    left: 8px;
    right: 8px;
  }
}

/* Dark analytics trading dashboard reset */
:root {
  --bg-primary: #27272f;
  --bg-secondary: #24242c;
  --bg-card: rgba(39, 39, 47, 0.92);
  --bg-card-hover: rgba(45, 45, 55, 0.96);
  --bg-input: #24242c;
  --border: rgba(255, 255, 255, 0.055);
  --border-hover: rgba(54, 190, 190, 0.42);
  --text-primary: #e6e6ec;
  --text-secondary: #a5a5b0;
  --text-muted: #6d6d78;
  --accent: #35bfc0;
  --accent-hover: #52d7d7;
  --green: #35bfc0;
  --green-dim: rgba(53, 191, 192, 0.14);
  --red: #f05b55;
  --red-dim: rgba(240, 91, 85, 0.14);
  --gold: #b88cff;
  --blue: #2caee4;
  --purple: #7874b7;
  --purple-soft: rgba(120, 116, 183, 0.16);
  --panel: #292932;
  --panel-deep: #202027;
  --radius: 3px;
  --radius-sm: 3px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  --glow: 0 0 0 1px rgba(53, 191, 192, 0.12);
  --font: 'Rajdhani', sans-serif;
  --display-font: 'Rajdhani', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  background: #27272f;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  background:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    radial-gradient(circle at 58% 8%, rgba(64, 54, 80, 0.22), transparent 36%),
    #27272f;
  background-size: 160px 120px, 160px 120px, 100% 100%, 100% 100%;
  font-family: var(--font);
  font-weight: 400;
}

body::before,
body::after {
  display: none;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6,
.logo,
.page-header h1,
.card-header h2,
.card-header h3,
.btn,
.form-group label,
.stat-label,
th,
.trade-tab,
.nav-item {
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
}

.app-layout {
  min-height: 100vh;
  padding: 0;
}

.main-content {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.main-content::before,
.main-content::after {
  display: none;
}

.top-bar {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 96px;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #25252d;
  border: 0;
  border-right: 1px solid rgba(255,255,255,0.045);
  box-shadow: 12px 0 34px rgba(0,0,0,0.16);
  backdrop-filter: none;
}

.top-bar::before {
  content: "";
  display: block;
  position: static;
  width: 100%;
  height: 78px;
  flex: 0 0 78px;
  background: var(--accent);
  opacity: 1;
}

.logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 78px;
  display: grid;
  place-items: center;
  padding: 0;
  min-width: 0;
  min-height: 0;
  gap: 0;
  z-index: 2;
}

.logo-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  font-size: 0;
}

.logo-icon::before {
  content: "\f043";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
}

.logo-text {
  display: none;
}

.top-nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  height: auto;
  margin: 78px 0 0;
  padding: 20px 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.nav-item {
  width: 96px;
  min-width: 0;
  height: 88px;
  display: grid;
  place-items: center;
  padding: 0;
  gap: 0;
  color: #9a9aa5;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-item span {
  display: none;
}

.nav-item i {
  width: auto;
  color: currentColor;
  font-size: 17px;
}

.nav-item::before {
  display: none;
}

.nav-item:hover,
.nav-item.active,
.nav-item:nth-child(2).active,
.nav-item:nth-child(2):hover,
.nav-item:nth-child(3).active,
.nav-item:nth-child(3):hover,
.nav-item:nth-child(4).active,
.nav-item:nth-child(4):hover,
.nav-item:nth-child(5).active,
.nav-item:nth-child(5):hover,
.nav-item:nth-child(6).active,
.nav-item:nth-child(6):hover,
.nav-admin.active,
.nav-admin:hover {
  color: #fff;
  background: rgba(255,255,255,0.035);
  border-left-color: var(--accent);
  box-shadow: none;
  transform: none;
}

.top-bar-right {
  margin-top: auto;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.header-stats {
  display: none;
}

.balance-display,
.points-display,
.claim-account-btn,
.user-avatar,
.logout-btn-header {
  width: 96px;
  min-width: 0;
  height: 78px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #9a9aa5;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
}

.claim-account-btn span,
.balance-display span,
.points-display span {
  display: none;
}

.claim-account-btn {
  color: var(--accent);
}

.user-avatar {
  width: 50px;
  height: 50px;
  margin: 14px auto 16px;
  overflow: hidden;
  color: #fff;
  background: #32323c;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  font-weight: 600;
}

.user-avatar img {
  border-radius: 50%;
  border: 0;
  clip-path: none;
}

.logout-btn-header {
  height: 58px;
}

.content-area {
  grid-column: 2;
  width: 100%;
  max-width: 1220px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 64px 76px;
}

.page-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin: 0 0 48px;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
}

.page-header::before,
.page-header::after {
  display: none;
}

.page-header h1 {
  color: #d8d8df;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 300;
  text-shadow: none;
}

.page-header h1 i {
  display: none;
}

.page-header p {
  margin-top: 4px;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.35;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.045);
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.token-info-bar,
.chart-container,
.holding-info,
.trade-summary,
.table-wrap,
.modal,
.admin-stat,
.token-mini-item,
.badge-item,
.money-presets button {
  color: var(--text-primary);
  background: rgba(39, 39, 47, 0.72);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.modal {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.card::before,
.card::after,
.auth-card::before,
.auth-card::after,
.wallet-balance-card::before,
.wallet-balance-card::after,
.investment-card::before,
.investment-card::after,
.profile-header::after,
.badge-item::before {
  display: none;
}

/* Card hover effects removed - all cards have same background color */

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}

.card-header h2,
.card-header h3,
.profile-details h1,
.token-name-group h2,
.portfolio-token-name,
.badge-name,
.token-mini-symbol {
  color: #dcdce3;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0;
}

.card-header h3 i,
.card-header h2 i {
  color: var(--accent);
}

.stat-card {
  min-height: 132px;
  padding: 22px;
  background: rgba(39, 39, 47, 0.72);
  border: none;
}

.stat-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.stat-value,
.wallet-balance-amount,
.token-price-big {
  color: #dcdce3;
  font-family: var(--font);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  line-height: 1;
  text-shadow: none;
}

.text-green,
.wallet-balance-amount {
  color: var(--accent) !important;
  text-shadow: none;
}

.text-red {
  color: var(--red) !important;
  text-shadow: none;
}

.text-gold,
.text-accent {
  color: var(--accent) !important;
  text-shadow: none;
}

.text-muted,
.portfolio-token-symbol,
.badge-date,
.token-mini-name,
.token-mini-subtext {
  color: var(--text-muted) !important;
}

.btn,
.money-presets button,
.admin-tab {
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 18px;
  clip-path: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,0.06);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent-hover);
}

.btn-green {
  color: #15151b;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,0.06);
}

.btn-green:hover {
  color: #15151b;
  background: var(--accent-hover);
}

.btn-red {
  color: #fff;
  background: var(--red);
}

.btn-outline {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.09);
}

.btn-outline:hover {
  color: #fff;
  background: rgba(255,255,255,0.035);
  border-color: rgba(53, 191, 192, 0.32);
}

.btn:disabled,
button:disabled {
  color: rgba(165, 165, 176, 0.42) !important;
  background: rgba(255,255,255,0.035) !important;
  border-color: rgba(255,255,255,0.045) !important;
}

.form-control,
select.form-control,
textarea.form-control {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--text-primary);
  background: rgba(36, 36, 44, 0.94);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  font-family: var(--font);
  box-shadow: none;
}

.form-control:focus {
  border-color: rgba(53, 191, 192, 0.48);
  box-shadow: none;
  background: rgba(36, 36, 44, 1);
}

.form-control::placeholder {
  color: rgba(165, 165, 176, 0.48);
}

.form-group label,
th {
  color: var(--text-muted);
}

.input-group {
  gap: 10px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-group .form-control,
.input-group .btn {
  border-radius: 18px;
}

.table-wrap {
  overflow: auto;
}

th {
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  font-size: 12px;
  font-weight: 500;
}

th,
td {
  border-bottom: 1px solid rgba(255,255,255,0.045);
}

td {
  color: var(--text-secondary);
}

tr:hover td {
  background: rgba(255,255,255,0.025);
}

.trade-row-buy td,
.trade-row-sell td {
  background: transparent;
}

.trade-token-logo,
.portfolio-token-logo,
.token-mini-logo,
.token-logo,
.lb-avatar,
.profile-avatar-lg,
.badge-emblem {
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: none;
  clip-path: none;
}

.token-logo-fallback,
.lb-avatar {
  background: var(--accent);
  color: #15151b;
}

.trade-discovery-grid {
  gap: 18px;
}

.token-mini-item {
  padding: 14px;
}

.token-mini-value,
.portfolio-value,
.portfolio-pnl,
.text-mono,
.ic-value {
  font-family: var(--mono);
}

.token-info-bar {
  gap: 18px;
  background: rgba(39, 39, 47, 0.72);
}

.token-info-bar::before {
  display: none;
}

.token-stat {
  border-left-color: rgba(255,255,255,0.045);
}

.chart-container {
  min-height: 520px;
  background:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px),
    rgba(39, 39, 47, 0.72);
  background-size: 80px 72px;
}

.trade-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 20px;
}

.trade-panel .card {
  top: 28px;
  border-top: 1px solid rgba(255,255,255,0.055);
}

.trade-tabs {
  gap: 8px;
  padding: 4px;
  background: rgba(36, 36, 44, 0.94);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 20px;
  box-shadow: none;
}

.trade-tab {
  min-height: 34px;
  border-radius: 17px;
  color: var(--text-muted);
  clip-path: none;
}

.trade-tab.active-buy {
  color: #15151b;
  background: var(--accent);
  box-shadow: none;
}

.trade-tab.active-sell {
  color: #fff;
  background: var(--red);
  box-shadow: none;
}

.holding-info,
.trade-summary {
  background: rgba(36, 36, 44, 0.8);
}

.trade-summary-row {
  border-bottom-color: rgba(255,255,255,0.045);
}

.money-presets {
  gap: 8px;
}

.money-presets button {
  color: var(--text-secondary);
  background: rgba(36, 36, 44, 0.84);
  border-color: rgba(255,255,255,0.055);
}

.money-presets button:hover {
  color: #15151b;
  background: var(--accent);
}

.badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.badge-emblem {
  background: var(--accent);
  color: #15151b;
}

.wallet-balance-card {
  text-align: left;
  background: rgba(39, 39, 47, 0.72);
}

.wallet-actions {
  justify-content: flex-start;
}

.profile-header {
  min-height: 170px;
  background: rgba(39, 39, 47, 0.72);
}

.profile-details p {
  color: var(--text-secondary);
}

.profile-cover-btn,
.profile-avatar-btn,
.status-badge {
  border-radius: 18px;
  background: rgba(36, 36, 44, 0.92);
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.08);
  clip-path: none;
}

.investment-card h3 {
  color: var(--accent);
}

.investment-card h3::before {
  background: var(--accent);
  box-shadow: none;
}

.ic-row {
  border-bottom-color: rgba(255,255,255,0.045);
}

.ic-label {
  color: var(--text-muted);
}

.rank-cell {
  font-family: var(--font);
}

.rank-1,
.rank-2,
.rank-3 {
  text-shadow: none;
}

.rank-1 {
  color: var(--gold);
}

.rank-2 {
  color: var(--accent);
}

.rank-3 {
  color: var(--purple);
}

.alert,
.toast {
  border-radius: 3px;
  clip-path: none;
}

.alert-success,
.status-active,
.toast-success {
  background: rgba(53, 191, 192, 0.12);
  color: var(--accent);
  border-color: rgba(53, 191, 192, 0.24);
}

.alert-error,
.status-inactive,
.toast-error {
  background: rgba(240, 91, 85, 0.12);
  color: var(--red);
  border-color: rgba(240, 91, 85, 0.24);
}

.toast,
.toast-info {
  background: rgba(39, 39, 47, 0.96);
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.modal-overlay {
  background: rgba(20, 20, 26, 0.78);
  backdrop-filter: blur(8px);
}

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

.crypto-ticker-bar {
  left: 96px;
  right: 0;
  bottom: 0;
  width: auto;
  height: 34px;
  background: rgba(36, 36, 44, 0.96);
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.045);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.ticker-item {
  color: var(--text-muted);
  font-family: var(--font);
}

.token-banner-container,
.dashboard-slider {
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.055);
  background: rgba(39, 39, 47, 0.72);
  box-shadow: none;
  clip-path: none;
}

.token-banner-overlay,
.dashboard-slider .token-banner-overlay {
  background: linear-gradient(90deg, rgba(39,39,47,0.92), rgba(39,39,47,0.48) 58%, rgba(39,39,47,0.78));
}

.token-banner-title,
.token-banner-subtitle,
.dashboard-slider .token-banner-title,
.dashboard-slider .token-banner-subtitle {
  color: var(--text-primary);
}

.token-banner-kicker,
.dashboard-slider .token-banner-kicker {
  color: var(--accent);
}

.token-banner-chain,
.token-banner-address,
.token-banner-stats {
  border-radius: 3px;
  background: rgba(36, 36, 44, 0.84);
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.055);
}

.dashboard-token-logo {
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.11);
}

.auth-layout {
  background:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    #27272f;
  background-size: 160px 120px;
}

.auth-card {
  max-width: 430px;
  background: rgba(39, 39, 47, 0.9);
}

.auth-card .logo-text {
  display: inline;
  color: var(--text-primary);
}

.auth-card h1 {
  color: var(--text-primary);
}

.auth-subtitle,
.auth-footer {
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .main-content {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .top-bar {
    width: 72px;
  }

  .top-bar::before,
  .logo,
  .nav-item,
  .balance-display,
  .points-display,
  .claim-account-btn,
  .logout-btn-header {
    width: 72px;
  }

  .logo {
    height: 72px;
  }

  .top-bar::before {
    height: 72px;
    flex-basis: 72px;
  }

  .top-nav {
    margin-top: 72px;
  }

  .nav-item {
    height: 72px;
  }

  .content-area {
    padding: 42px 32px 70px;
  }

  .crypto-ticker-bar {
    left: 72px;
  }

  .trade-layout {
    grid-template-columns: 1fr;
  }

  .trade-panel .card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .main-content {
    display: flex;
    min-height: 100vh;
  }

  .top-bar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.045);
  }

  .top-bar::before {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .top-nav {
    flex-direction: row !important;
    margin: 0;
    padding: 0;
    height: 64px;
    overflow-x: auto;
  }

  .nav-item {
    width: 58px;
    height: 64px;
    flex: 0 0 58px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .nav-item:hover,
  .nav-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .top-bar-right {
    margin-left: auto;
    width: auto;
    flex-direction: row;
    border-top: 0;
  }

  .claim-account-btn,
  .logout-btn-header {
    width: 52px;
    height: 64px;
  }

  .user-avatar {
    display: none;
  }

  .content-area {
    padding: 32px 18px 74px;
  }

  .page-header {
    display: block;
    margin-bottom: 30px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
    gap: 8px;
  }

  .input-group .form-control,
  .input-group .btn {
    width: 100%;
  }

  .crypto-ticker-bar {
    left: 0;
  }
}

/* Restored candy console theme */
:root {
  --bg-primary: #f7f4fb;
  --bg-secondary: #2b263f;
  --bg-card: #211d32;
  --bg-card-hover: #28233f;
  --bg-input: #1c182b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(92, 184, 231, 0.72);
  --text-primary: #f7f3ff;
  --text-secondary: #c6bfd4;
  --text-muted: #8f879f;
  --accent: #ff0b72;
  --accent-hover: #ff4d62;
  --green: #5bb6e7;
  --green-dim: rgba(91, 182, 231, 0.18);
  --red: #ff5b63;
  --red-dim: rgba(255, 91, 99, 0.2);
  --gold: #b88cff;
  --blue: #59b8eb;
  --purple: #765fba;
  --purple-soft: rgba(118, 95, 186, 0.28);
  --panel: #2c2744;
  --panel-deep: #1d192e;
  --disabled-stripe: repeating-linear-gradient(135deg, rgba(255,255,255,0.32) 0, rgba(255,255,255,0.32) 8px, rgba(255,255,255,0.08) 8px, rgba(255,255,255,0.08) 16px);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 36px rgba(13, 10, 25, 0.26);
  --glow: 0 0 0 4px rgba(255, 11, 114, 0.16);
  --font: 'Rajdhani', sans-serif;
  --display-font: 'Rajdhani', sans-serif;
}

html {
  background: var(--bg-primary);
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 208, 91, 0.12), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(91, 182, 231, 0.18), transparent 24%),
    var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0;
}

body::before,
body::after {
  display: none !important;
}

h1, h2, h3, h4, h5, h6,
.btn,
.form-group label,
.stat-label,
th,
.logo,
.nav-item,
.trade-tab {
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.app-layout {
  display: flex;
  min-height: 100vh;
  padding: 16px;
}

.main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: auto;
  max-width: none;
  min-height: calc(100vh - 32px);
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 11%, rgba(255, 11, 114, 0.08), transparent 20%),
    radial-gradient(circle at 91% 10%, rgba(91, 182, 231, 0.12), transparent 20%),
    var(--panel);
  border: 0;
  border-radius: 0;
  box-shadow: 0 24px 70px rgba(36, 29, 58, 0.28);
}

.main-content::before,
.main-content::after {
  display: none !important;
}

.top-bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  padding: 0 40px;
  background: 
    linear-gradient(180deg, rgba(10, 4, 16, 0.4) 0%, rgba(10, 4, 16, 0.95) 100%), 
    url('../header_background.png');
  background-size: cover;
  background-position: center;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  z-index: 1000;
}

.top-bar::before {
  display: none !important;
}

.logo {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: auto;
  height: auto;
  gap: 12px;
  padding: 0;
  color: #fff;
  margin-right: auto;
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), var(--red));
  color: #fff;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.1), 0 10px 24px rgba(255, 11, 114, 0.26);
  clip-path: none;
  filter: none;
  font-size: 20px;
}

.logo-icon::before {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 17px;
}

.logo-text {
  display: inline;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-transform: none;
}

.text-accent,
.logo-text .text-accent {
  color: var(--accent) !important;
  text-shadow: none;
}

.top-nav {
  display: flex !important;
  flex: 0 1 auto;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  gap: 6px;
  margin: 0 20px;
  padding: 6px;
  overflow-x: auto;
  background: var(--panel-deep);
  border-radius: 999px;
  box-shadow: inset 0 2px 9px rgba(0,0,0,0.32);
}

.nav-item {
  width: 42px;
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #d9d4e8;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.nav-item span {
  display: none;
}

.nav-item i {
  width: auto;
  color: currentColor;
  font-size: 16px;
}

.nav-item::before {
  display: none !important;
}

.nav-item:hover,
.nav-item.active,
.nav-item:nth-child(2).active,
.nav-item:nth-child(2).hover,
.nav-item:nth-child(4).active,
.nav-item:nth-child(4).hover {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #ff3f71);
  border: 0;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.13), 0 8px 20px rgba(255, 11, 114, 0.24);
  transform: translateY(-1px);
}

.nav-item:nth-child(3).active,
.nav-item:nth-child(3):hover,
.nav-item:nth-child(5).active,
.nav-item:nth-child(5):hover {
  background: linear-gradient(145deg, var(--blue), #65c6ee);
}

.nav-item:nth-child(6).active,
.nav-item:nth-child(6):hover,
.nav-admin.active,
.nav-admin:hover {
  background: linear-gradient(145deg, var(--purple), #5b4a93);
}

.top-bar-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: auto;
  height: auto;
  gap: 10px;
  margin: 0 0 0 auto;
  border: 0;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
}

.balance-display,
.points-display,
.user-avatar,
.logout-btn-header,
.claim-account-btn {
  min-width: 0;
  height: auto;
  border-radius: 999px;
  clip-path: none;
}

.balance-display,
.points-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--panel-deep);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.28);
  font-family: var(--font);
  font-size: 15px;
}

.balance-display {
  color: var(--gold);
}

.points-display {
  color: var(--blue);
}

.balance-display span,
.points-display span,
.claim-account-btn span {
  display: inline;
}

.claim-account-btn {
  color: #fff;
}

.user-avatar {
  width: 40px;
  height: 40px;
  margin: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--purple), #4d416f);
  border: 0;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.16);
  overflow: hidden;
}

.user-avatar img {
  border: 0;
  border-radius: 50%;
  clip-path: none;
}

.logout-btn-header {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-muted);
  background: var(--panel-deep);
  border: 0;
}

.content-area {
  width: 100%;
  max-width: 1320px;
  min-height: auto;
  margin: 0 auto;
  padding: 30px;
}

.page-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 0 32px;
  padding: 48px 40px;
  background: 
    linear-gradient(180deg, rgba(10, 4, 16, 0.2) 0%, rgba(10, 4, 16, 0.95) 100%), 
    url('../header_background.png');
  background-size: cover;
  background-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.page-header::before,
.page-header::after {
  display: none !important;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.page-header h1 i {
  display: inline;
  color: inherit;
}

.page-header p {
  max-width: none;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 17px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  background: transparent;
  border: 0;
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.token-info-bar,
.chart-container,
.holding-info,
.trade-summary,
.table-wrap,
.modal,
.admin-stat,
.token-mini-item,
.badge-item,
.money-presets button {
  color: var(--text-primary);
  background: var(--bg-card);
  border: none !important;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(15, 12, 28, 0.2), inset 0 1px 0 rgba(255,255,255,0.04);
  clip-path: none;
}

.card,
.auth-card,
.investment-card,
.wallet-balance-card,
.profile-header,
.modal {
  padding: 22px;
  overflow: hidden;
}

.card::before,
.card::after,
.auth-card::before,
.auth-card::after,
.investment-card::before,
.investment-card::after,
.profile-header::after,
.wallet-balance-card::before,
.wallet-balance-card::after,
.badge-item::before {
  display: none !important;
}

.btn:hover,
a:hover {
  border-color: rgba(91, 182, 231, 0.54);
  box-shadow: 0 16px 34px rgba(12, 10, 24, 0.28);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

.card-header h2,
.card-header h3,
.profile-details h1,
.token-name-group h2,
.portfolio-token-name,
.badge-name,
.token-mini-symbol {
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
}

.stat-card {
  min-height: 132px;
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.stat-value,
.wallet-balance-amount,
.token-price-big {
  color: #fff;
  font-family: var(--font);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 900;
  text-shadow: none;
}

.wallet-balance-amount,
.text-green {
  color: var(--gold) !important;
  text-shadow: none;
}

.text-red {
  color: var(--red) !important;
  text-shadow: none;
}

.text-gold {
  color: var(--gold) !important;
  text-shadow: none;
}

.text-muted {
  color: var(--text-muted) !important;
}

.btn,
.money-presets button,
.admin-tab {
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 999px;
  clip-path: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.12), 0 9px 18px rgba(0,0,0,0.16);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #ff3f71);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(145deg, #ff3387, var(--red));
}

.btn-green {
  color: #4a3651;
  background: linear-gradient(145deg, var(--gold), #d2c2ff);
}

.btn-green:hover {
  color: #302544;
  background: linear-gradient(145deg, #e9d8ff, #d2c2ff);
}

.btn-red {
  color: #fff;
  background: linear-gradient(145deg, var(--red), #ff7a62);
}

.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.btn-outline:hover {
  color: #fff;
  background: rgba(184, 140, 255, 0.12);
  border-color: var(--gold);
}

.btn:disabled,
button:disabled {
  color: rgba(37,33,50,0.46) !important;
  background: var(--disabled-stripe), #d3d1d5 !important;
  border-color: rgba(255,255,255,0.16) !important;
}

.form-control,
select.form-control,
textarea.form-control {
  min-height: 46px;
  padding: 12px 16px;
  color: #fff;
  background: var(--panel-deep);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-family: var(--font);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.34);
}

.form-control:focus {
  background: var(--panel-deep);
  border-color: var(--blue);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.34), 0 0 0 3px rgba(91, 182, 231, 0.18);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-group label,
th {
  color: var(--text-secondary);
}

.input-group {
  display: flex;
  gap: 0;
  overflow: hidden;
  background: var(--panel-deep);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.34);
}

.input-group .form-control {
  border-radius: 999px 0 0 999px;
  box-shadow: none;
}

.input-group .btn {
  border-radius: 0 999px 999px 0;
}

.table-wrap {
  overflow: auto;
  background: var(--bg-card);
}

th {
  color: var(--text-muted);
  background: var(--panel-deep);
  font-size: 13px;
  font-weight: 700;
}

th,
td {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

td {
  color: var(--text-primary);
}

/* tr:hover td removed */

.trade-token-logo,
.portfolio-token-logo,
.token-mini-logo,
.token-logo,
.lb-avatar,
.profile-avatar-lg,
.badge-emblem {
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.16);
  clip-path: none;
}

.token-logo-fallback,
.lb-avatar {
  background: linear-gradient(145deg, var(--accent), var(--blue));
  color: #fff;
}

.trade-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 24px;
}

.chart-container {
  min-height: 500px;
  background: var(--bg-card);
}

.trade-panel .card {
  top: 96px;
  border-top: 0;
}

.trade-tabs {
  gap: 0;
  padding: 6px;
  background: var(--panel-deep);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.34);
}

.trade-tab {
  min-height: 42px;
  border-radius: 999px;
  color: var(--text-muted);
}

.trade-tab.active-buy {
  color: #3b2d47;
  background: linear-gradient(145deg, var(--gold), #d2c2ff);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12);
}

.trade-tab.active-sell {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--red));
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12);
}

.holding-info,
.trade-summary,
.token-mini-item,
.badge-item,
.money-presets button {
  background: var(--panel-deep);
}

.money-presets button {
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.08);
}

.money-presets button:hover {
  color: #fff;
  background: var(--bg-card-hover);
}

.wallet-balance-card {
  text-align: center;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 11, 114, 0.14), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(91, 182, 231, 0.16), transparent 28%),
    var(--bg-card);
}

.wallet-actions {
  justify-content: center;
}

.profile-header {
  min-height: 166px;
  background: linear-gradient(135deg, rgba(33,29,50,0.94), rgba(44,39,68,0.88));
}

.alert {
  border-radius: 12px;
}

.alert-success,
.status-active,
.toast-success {
  color: var(--blue);
  background: rgba(91, 182, 231, 0.16);
  border-color: rgba(91, 182, 231, 0.38);
}

.alert-error,
.status-inactive,
.toast-error {
  color: var(--red);
  background: var(--red-dim);
  border-color: rgba(255, 91, 99, 0.38);
}

.modal-overlay {
  background: rgba(10, 8, 18, 0.78);
  backdrop-filter: blur(10px);
}

.crypto-ticker-bar {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 34px;
  background: var(--panel-deep);
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  box-shadow: 0 -8px 24px rgba(12,10,24,0.22);
}

.token-banner-container,
.dashboard-slider {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--bg-card);
  box-shadow: 0 12px 24px rgba(15, 12, 28, 0.2);
}

.token-banner-overlay,
.dashboard-slider .token-banner-overlay {
  background: linear-gradient(90deg, rgba(33,29,50,0.94), rgba(44,39,68,0.62) 58%, rgba(33,29,50,0.78));
}

.token-banner-kicker,
.dashboard-slider .token-banner-kicker {
  color: var(--gold);
}

.auth-layout {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 11, 114, 0.12), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(91, 182, 231, 0.18), transparent 30%),
    var(--panel);
}

.auth-card {
  max-width: 440px;
}

.auth-card .logo-text {
  display: inline;
  color: #fff;
}

.auth-card h1 {
  color: #fff;
}

.auth-subtitle,
.auth-footer {
  color: var(--text-muted);
}

/* Final trade-screen fixes */
.top-bar-right .claim-account-btn {
  height: 42px;
  min-width: 0;
  max-width: 148px;
  padding: 0 14px;
  white-space: nowrap;
  line-height: 1;
}

.top-bar-right .claim-account-btn span {
  display: inline-block;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-right .balance-display,
.top-bar-right .points-display {
  height: 42px;
  min-width: 84px;
  padding: 0 14px;
  line-height: 1;
}

.top-bar-right .user-avatar,
.top-bar-right .logout-btn-header {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.token-info-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 118px;
  background:
    linear-gradient(90deg, rgba(33,29,50,0.92), rgba(33,29,50,0.78)),
    var(--bg-card);
}

.token-info-bar::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--token-banner-image);
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: blur(18px) saturate(1.35);
  transform: scale(1.15);
}

.token-info-bar::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,11,114,0.18), transparent 34%),
    linear-gradient(90deg, rgba(33,29,50,0.92), rgba(33,29,50,0.72));
}

.token-info-bar > * {
  position: relative;
  z-index: 1;
}

.trade-layout {
  align-items: start;
}

.trade-panel {
  align-self: start;
}

.trade-panel .card {
  position: sticky;
  top: 16px;
  margin-top: 0;
}

.trade-amount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.trade-amount-head label {
  margin-bottom: 0;
}

.amount-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amount-all-btn,
.unit-switch button {
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
}

.amount-all-btn {
  min-height: 30px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #ff3f71);
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}

.unit-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--panel-deep);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.28);
}

.unit-switch button {
  min-width: 44px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--text-muted);
  background: transparent;
  border-radius: 999px;
}

.unit-switch button.active {
  color: #3b2d47;
  background: var(--gold);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}

#token-trades table th:nth-child(3),
#token-trades table td:nth-child(3) {
  color: var(--gold);
}

@media (max-width: 1024px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: center;
  }

  .top-bar-right {
    margin-left: auto;
  }

  .trade-layout {
    grid-template-columns: 1fr;
  }

  .trade-panel .card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .app-layout {
    padding: 0;
  }

  .main-content {
    min-height: 100vh;
    border-radius: 0;
  }

  .top-bar {
    top: 0;
    padding: 12px;
  }

  .content-area {
    padding: 18px 18px 58px;
  }

  .header-stats,
  .claim-account-btn span,
  .logo-text {
    display: none;
  }

  .trade-discovery-grid {
    grid-template-columns: 1fr;
  }

  .trade-amount-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .amount-tools {
    width: 100%;
    justify-content: space-between;
  }

  .input-group {
    border-radius: 14px;
    flex-direction: column;
    gap: 8px;
  }

  .input-group .form-control,
  .input-group .btn {
    width: 100%;
    border-radius: 12px;
  }

  .auth-card {
    padding: 30px 22px;
  }
}

/* Unified Profile Header & Info */
.profile-info-container {
  position: relative;
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  border: none;
  background: 
    linear-gradient(90deg, #12051b 0%, rgba(18, 5, 27, 0.9) 25%, rgba(18, 5, 27, 0) 60%),
    linear-gradient(180deg, rgba(10, 4, 16, 0.4) 0%, rgba(10, 4, 16, 0.95) 100%), 
    var(--rank-image, none),
    url('../header_background.png');
  background-size: cover, cover, contain, cover;
  background-position: left center, center, right center, center;
  background-repeat: no-repeat;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.profile-header-unified {
  padding: 48px 32px 24px;
  display: flex;
  align-items: flex-end;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.investment-section-unified {
  padding: 0 32px 48px;
  position: relative;
  z-index: 2;
}

.investment-section-unified h3 {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.investment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 64px;
}

.profile-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.profile-avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  overflow: hidden;
}

.profile-details h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  margin-bottom: 4px;
}

.profile-details p {
  opacity: 0.8;
  font-size: 14px;
}

/* Final Header Fix - Overriding all conflicting styles */
.top-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 70px !important;
  min-height: 70px !important;
  padding: 0 24px !important;
  background: #0a0410 !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}

.top-bar::before, .top-bar::after {
  display: none !important;
}

.top-nav {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

.top-bar-right {
  flex: 0 0 auto !important;
  display: flex !important;
  gap: 16px !important;
  margin-left: auto !important;
}

/* Preset Buttons Highlighting */
.btn-preset-highlight {
  padding: 10px 22px !important;
  border-radius: 0 !important;
  background: rgba(184, 255, 61, 0.1) !important;
  border: none !important;
  color: var(--green) !important;
  font-weight: 800 !important;
  font-family: var(--mono) !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  margin: 4px !important;
}

.btn-preset-highlight:hover {
  background: var(--green) !important;
  color: #000 !important;
  transform: scale(1.05) !important;
}

/* ── Final Global Reset (Fixing White Border) ── */
html, body {
  background-color: #0a0410 !important;
  background-image: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
}

.app-layout {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.main-content {
  margin: 0 !important;
  border: none !important;
}

body::before, body::after {
  display: none !important;
}

@media (min-width: 1024px) {
  .nav-item span {
    display: inline !important;
  }
  .nav-item {
    width: auto !important;
    padding: 8px 16px !important;
  }
}

/* ── Navigation Redesign: Icons Only + Hover Tooltip Labels ── */

/* Ensure header doesn't clip the floating labels */
.top-bar {
  overflow: visible !important;
}

.top-nav {
  background: transparent !important;
  box-shadow: none !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 32px !important;
  overflow: visible !important;
}

.nav-item {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: var(--text-muted) !important;
  transition: color 0.25s ease, transform 0.25s ease !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Icon only - always visible */
.nav-item i {
  font-size: 20px !important;
  transition: all 0.25s ease !important;
  position: relative;
  z-index: 1;
}

/* Label: hidden by default, floats below header on hover */
.nav-item span {
  position: fixed !important;
  top: 62px !important;
  left: auto !important;
  transform: translateX(-50%) translateY(-6px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  font-family: var(--display-font) !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: rgba(10, 4, 22, 0.92) !important;
  border: 1px solid rgba(124, 92, 252, 0.4) !important;
  padding: 5px 12px !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 12px rgba(124,92,252,0.2) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  z-index: 9999 !important;
}

.nav-item:hover span {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

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

.nav-item:hover i {
  color: var(--accent) !important;
  filter: drop-shadow(0 0 10px var(--accent)) !important;
}

.nav-item.active {
  background: transparent !important;
  color: var(--accent) !important;
}

.nav-item.active i {
  color: var(--accent) !important;
  filter: drop-shadow(0 0 14px var(--accent)) !important;
}

/* Glowing dot indicator for active item */
.nav-item.active::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent);
  animation: pulseGlow 2s infinite;
}

/* Remove any legacy child-specific gradients */
.nav-item:nth-child(n).active, 
.nav-item:nth-child(n):hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* ── Pill Styles for Header Stats ── */
.header-stats {
  gap: 32px !important;
}

.balance-display, .points-display {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-family: var(--mono) !important;
  font-size: 15px !important;
  height: auto !important;
  transition: all 0.2s ease !important;
}

.balance-display:hover, .points-display:hover {
  opacity: 0.8 !important;
  transform: translateY(-1px) !important;
}

.balance-display i { 
  color: #5bc0be !important; 
  font-size: 16px !important; 
}

.balance-display .highlight-balance { 
  color: #b8ff3d !important; 
  font-family: var(--display-font) !important; 
  font-size: 16px !important; 
  font-weight: 800 !important; 
  letter-spacing: 0.5px !important;
}

.points-display i { 
  color: #5bc0be !important; 
  font-size: 16px !important; 
}

.points-display .points-text { 
  display: flex !important; 
  flex-direction: row !important; 
  gap: 5px !important;
  align-items: baseline !important;
}

.points-display .points-value { 
  color: #5bc0be !important; 
  font-family: var(--display-font) !important; 
  font-size: 16px !important; 
  font-weight: 800 !important; 
}

.points-display .points-label { 
  color: #5bc0be !important; 
  font-size: 13px !important; 
  font-weight: 700 !important; 
  opacity: 0.8 !important; 
}

/* Portfolio stat cards with subtle colored glow from below */
.portfolio-stat-card {
  position: relative;
  overflow: hidden;
  z-index: 0;
  border-color: rgba(255,255,255,0.08);
}
.portfolio-stat-card::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 180%;
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 100%, rgba(56,189,248,0.24) 0%, transparent 55%);
  filter: blur(26px);
  opacity: 0.95;
  z-index: 0;
}
.portfolio-stat-card > * {
  position: relative;
  z-index: 1;
}
.portfolio-stat-card:nth-child(1)::before {
  background: radial-gradient(circle at 50% 100%, rgba(56,189,248,0.30) 0%, transparent 52%);
}
.portfolio-stat-card:nth-child(2)::before {
  background: radial-gradient(circle at 50% 100%, rgba(255,0,85,0.28) 0%, transparent 52%);
}
.portfolio-stat-card:nth-child(3)::before {
  background: radial-gradient(circle at 50% 100%, rgba(124,92,252,0.28) 0%, transparent 52%);
}
.portfolio-stat-card:nth-child(4)::before {
  background: radial-gradient(circle at 50% 100%, rgba(184,255,61,0.28) 0%, transparent 52%);
}

/* ── Disable Hover Effects on Non-Clickable Cards ── */
.card:hover,
.stat-card:hover,
.investment-card:hover,
.wallet-balance-card:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Card hover effects removed - all cards have same background color */

/* Rank Highlights for Dashboard */
.rank-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.rank-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  display: block !important;
}

/* Rank 1: Nice great effect particles and glow inside */
.rank-card.rank-1 {
  background: rgba(255, 215, 0, 0.08) !important;
  box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.15), 0 0 20px rgba(255, 215, 0, 0.2) !important;
}

.rank-card.rank-1::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.2), transparent 70%);
  animation: rankPulseGlow 2s infinite alternate;
}

.rank-card.rank-1::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle, rgba(255, 215, 0, 0.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 30px 30px, 45px 45px;
  background-position: 0 0, 15px 15px;
  opacity: 0.15;
  animation: rankParticlesAnim 15s linear infinite;
  z-index: -1;
  display: block !important;
}

@keyframes rankPulseGlow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes rankParticlesAnim {
  0% { transform: rotate(0deg) translateY(0); }
  100% { transform: rotate(360deg) translateY(20px); }
}

/* Rank 2: Less complex */
.rank-card.rank-2 {
  background: rgba(192, 192, 192, 0.08) !important;
  box-shadow: inset 0 0 20px rgba(192, 192, 192, 0.15) !important;
}

.rank-card.rank-2::before {
  background: radial-gradient(circle at 50% 50%, rgba(192, 192, 192, 0.15), transparent 60%);
  animation: rankPulseGlow 3s infinite alternate;
}

/* Rank 3: More simple */
.rank-card.rank-3 {
  background: rgba(205, 127, 50, 0.08) !important;
  box-shadow: inset 0 0 10px rgba(205, 127, 50, 0.15) !important;
}

.rank-card.rank-3::before {
  background: radial-gradient(circle at 50% 50%, rgba(205, 127, 50, 0.1), transparent 50%);
}
