/* ==========================================================================
   DegenTerminal 24/7 Realtime Quantitative Trading Dashboard & Landing Page
   Design Aesthetics: Cyberpunk Dark Mode, Glassmorphism, Neon Glow & Micro-animations
   ========================================================================== */

/* 1. Reset & Root Variables */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg-color: #050508;
  --panel-bg: rgba(12, 12, 22, 0.55);
  --panel-border: rgba(255, 255, 255, 0.06);
  --neon-blue: #00f0ff;
  --neon-pink: #ff007f;
  --neon-green: #39ff14;
  --neon-red: #ff3131;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

body {
  background-color: var(--bg-color);
  font-family: var(--font-main);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* 2. Floating Cyber Ambient Glows */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  animation: floatGlow 12s infinite alternate ease-in-out;
}

body::before {
  background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
  top: 15%;
  left: -100px;
}

body::after {
  background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
  bottom: 10%;
  right: -100px;
  animation-delay: -6s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* 3. Main Layout Container */
.app-container {
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 4. Glassmorphism Card System */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 15px 50px rgba(0, 240, 255, 0.05);
}

/* 5. Header / Profile Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.banner-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  position: relative;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(5, 5, 8, 0.95) 100%);
}

.profile-container {
  display: flex;
  gap: 25px;
  padding: 0 35px 35px 35px;
  margin-top: -65px;
  position: relative;
  z-index: 2;
  align-items: flex-end;
}

.avatar-container {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--bg-color);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(255, 0, 127, 0.3);
  background: #111;
  flex-shrink: 0;
}

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

.profile-info {
  flex-grow: 1;
  padding-bottom: 5px;
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #c7d2fe, var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-tag {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.profile-bio {
  margin-top: 15px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
}

.wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 16px;
  border-radius: 10px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.wallet-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-blue);
}

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

.wallet-address {
  color: var(--text-primary);
  background: linear-gradient(90deg, var(--neon-blue), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* USD Virtual Portfolio Badges Styling */
.portfolio-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.portfolio-badge {
  display: inline-flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 180px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.portfolio-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.05);
}

.portfolio-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.portfolio-badge.profit::before {
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
}

.portfolio-badge.cash::before {
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
}

.portfolio-badge-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: var(--font-main);
  font-weight: 500;
}

.portfolio-badge-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-badge.profit .portfolio-badge-val {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.25);
}

.portfolio-badge.cash .portfolio-badge-val {
  background: linear-gradient(90deg, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 6. Dashboard Grid Section */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}

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

/* 7. Positions Section (Left) */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--neon-green); }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.no-positions {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.position-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.position-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: var(--neon-blue);
}

.position-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.position-token {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-symbol {
  font-size: 1.25rem;
  font-weight: 700;
}

.token-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.token-chain-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(129, 140, 248, 0.1);
  color: #818cf8;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.position-pnl {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-shadow: 0 0 10px currentColor;
}

.pnl-positive {
  color: var(--neon-green);
}

.pnl-negative {
  color: var(--neon-red);
}

.position-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
  font-size: 0.88rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.detail-val {
  color: var(--text-primary);
  font-weight: 500;
}

.detail-val-mono {
  font-family: var(--font-mono);
}

.position-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.position-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 8. Stats & Metrics (Right Top) */
.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-card-val {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* 9. Matrix Live Terminal Section (Bottom Grid/Right) */
.terminal-panel {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-dot.red { background: var(--neon-red); }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: var(--neon-green); }

.terminal-body {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #c7d2fe;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* Terminal Scanline Overlay */
.terminal-body::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 10;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

.terminal-line {
  word-break: break-all;
  animation: terminalFadeIn 0.3s ease forwards;
}

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

.line-time {
  color: var(--text-muted);
}

.line-info {
  color: var(--neon-blue);
}

.line-success {
  color: var(--neon-green);
}

.line-warning {
  color: #eab308;
}

.line-error {
  color: var(--neon-red);
}

/* 10. High-tech Cyber Buttons (Footer Links) */
.footer-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.cyber-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: all 0.6s;
}

.cyber-btn:hover::before {
  left: 100%;
}

.cyber-btn:hover {
  transform: translateY(-2px);
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.15);
  color: #ffffff;
}

.cyber-btn.github:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* 11. Dynamic Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

/* ==========================================================================
   Dual Arena Cyber-Punk PK Layout Styles
   Green (Conservative Sniper) vs ZMAC (Aggressive Scalper)
   ========================================================================== */

:root {
  --neon-green-emerald: #10b981;
  --neon-purple-pink: #d946ef;
}

.dual-arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .dual-arena-grid {
    grid-template-columns: 1fr;
  }
}

.arena-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 1. 置頂 VS Arena Battle Panel Styles */
.vs-arena-panel {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(12, 12, 22, 0.6) 50%, rgba(217, 70, 239, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 25px 30px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.vs-arena-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), rgba(255, 255, 255, 0.5), rgba(217, 70, 239, 0.3), transparent);
}

.vs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.vs-title-neon {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #10b981, #ffffff, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.leaderboard-badge {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05));
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fef08a;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-main);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.1);
  transition: all 0.3s ease;
}

.vs-arena-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.vs-agent-stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.vs-avatar-mini {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.vs-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-details-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs-name-mini {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vs-roi-val {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
}

.vs-npv-mini {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.vs-center-insignia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 20px;
}

.vs-logo-neon {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5), 0 0 20px rgba(217, 70, 239, 0.5);
  animation: vsBreathing 2s infinite alternate ease-in-out;
}

.vs-roi-delta {
  font-size: 0.75rem;
  color: var(--neon-blue);
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

@keyframes vsBreathing {
  0% { transform: scale(0.95); text-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 0 20px rgba(217, 70, 239, 0.4); }
  100% { transform: scale(1.05); text-shadow: 0 0 15px rgba(16, 185, 129, 0.8), 0 0 30px rgba(217, 70, 239, 0.8); }
}

.vs-battle-parameters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .vs-battle-parameters {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.vs-param-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vs-param-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vs-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.vs-progress-bar-duel {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-pink));
  width: 50%;
  transition: width 0.5s ease;
}

.vs-param-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* 2. Card Highlighting & Side Badges */
.arena-card {
  position: relative;
  border: 1px solid var(--panel-border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.arena-side-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 12px;
  border-bottom-left-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}

.arena-side-badge.green-glow {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-left: 1px solid rgba(16, 185, 129, 0.3);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.arena-side-badge.purple-glow {
  background: rgba(217, 70, 239, 0.15);
  color: #f472b6;
  border-left: 1px solid rgba(217, 70, 239, 0.3);
  border-bottom: 1px solid rgba(217, 70, 239, 0.3);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.1);
}

/* Green (Conservative) column styles */
.conservative-column .arena-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 15px 50px rgba(16, 185, 129, 0.06);
}

/* ZMAC (Aggressive) column styles */
.aggressive-column .arena-card:hover {
  border-color: rgba(217, 70, 239, 0.35);
  box-shadow: 0 15px 50px rgba(217, 70, 239, 0.06);
}

/* 3. Global HSL Highlights & Utilities */
.text-green {
  color: #10b981 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.text-purple {
  color: #d946ef !important;
  text-shadow: 0 0 10px rgba(217, 70, 239, 0.25);
}

.bg-green {
  background-color: #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.bg-purple {
  background-color: #d946ef !important;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.4);
}

.border-green {
  border-color: rgba(16, 185, 129, 0.2) !important;
}

.border-purple {
  border-color: rgba(217, 70, 239, 0.2) !important;
}

.bg-green-opacity {
  background: rgba(16, 185, 129, 0.02) !important;
  border: 1px dashed rgba(16, 185, 129, 0.15) !important;
  border-radius: 12px;
  padding: 12px 16px !important;
}

.bg-purple-opacity {
  background: rgba(217, 70, 239, 0.02) !important;
  border: 1px dashed rgba(217, 70, 239, 0.15) !important;
  border-radius: 12px;
  padding: 12px 16px !important;
}

.portfolio-badges-container.compact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.portfolio-badges-container.compact .portfolio-badge {
  min-width: 140px;
  padding: 10px 14px;
  flex: 1;
}

.position-slots-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: normal;
}

.scrollable-list {
  scrollbar-width: thin;
}

.scrollable-list::-webkit-scrollbar {
  width: 4px;
}

.scrollable-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

.wiring-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 4. Bottom Foundation Modules Grid */
.foundation-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 30px;
  margin-top: 10px;
}

@media (max-width: 1200px) {
  .foundation-modules-grid {
    grid-template-columns: 1fr;
  }
}

.foundation-card {
  height: 100%;
}

.dual-arena-grid .position-card {
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.dual-arena-grid .position-card::before {
  display: none; /* Hide default side marker since card border changes colors */
}

/* ── Values Resonance Hub Custom Styles ── */
.value-neon-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}
.value-neon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04) !important;
}
.value-neon-card.active-dominant {
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15) !important;
  border-width: 1.5px !important;
}
.reply-feed-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reply-feed-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.reply-feed-card .badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.reply-feed-card .badge.dad {
  background: rgba(255, 0, 128, 0.08);
  border: 1px solid rgba(255, 0, 128, 0.2);
  color: var(--neon-pink);
}
.reply-feed-card .badge.risk {
  background: rgba(0, 255, 128, 0.08);
  border: 1px solid rgba(0, 255, 128, 0.2);
  color: var(--neon-green);
}
.reply-feed-card .badge.trans {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--neon-blue);
}
.reply-feed-card .badge.logic {
  background: rgba(180, 0, 255, 0.08);
  border: 1px solid rgba(180, 0, 255, 0.2);
  color: #b400ff;
}
.reply-metrics-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 6px;
}
.reply-metric-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.reply-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.reply-text-content {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #e0e0e0;
}
#replies-feed-container::-webkit-scrollbar {
  width: 4px;
}
#replies-feed-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}
#replies-feed-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.3);
}

/* 🌾 JitoSOL & ✍️ Binance Square Dual Engine Visual Optimizations */
.engine-neon-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#engine-card-jitosol:hover {
  border-color: rgba(0, 255, 128, 0.45) !important;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.12), inset 0 0 10px rgba(0, 255, 128, 0.02) !important;
  transform: translateY(-2px);
}

#engine-card-binance:hover {
  border-color: rgba(240, 185, 11, 0.45) !important;
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.12), inset 0 0 10px rgba(240, 185, 11, 0.02) !important;
  transform: translateY(-2px);
}

