/* Cyberpunk Color Palette */
:root {
  --neon-pink: #ff2a6d;
  --neon-blue: #05d9e8;
  --neon-purple: #d300c5;
  --neon-green: #00ff9f;
  --neon-yellow: #f7f700;
  --dark-bg: #0d0221;
  --darker-bg: #02010a;
  --panel-bg: rgba(5, 5, 30, 0.8);
  --panel-border: rgba(0, 217, 232, 0.3);
  --text-primary: #d1f7ff;
  --text-secondary: #7df9ff;
  --sidebar-width: 280px;
  --header-height: 70px;
  --marquee-height: 40px;
  --slow-transition: 0.4s ease; /* Added for consistency */
  --hover-transition: 0.3s ease; /* Standard hover speed */
  --wipe-transition: 0.8s ease; /* For wipe effects */
}

/* --- Global Styles & Body Effects --- */

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

body {
  font-family: 'Share Tech Mono', monospace;
  background: var(--dark-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  text-shadow: 0 0 5px rgba(0, 217, 232, 0.3);
  overflow-x: hidden;
  position: relative; /* Needed for pseudo-elements */
}

/* Replacement for CRT: Animated Grid Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(64, 196, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(64, 196, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px; /* Grid size */
  z-index: -2; /* Behind content and background pulse */
  pointer-events: none;
  opacity: 0.7;
  animation: gridAnimation 8s linear infinite;
}

@keyframes gridAnimation {
  0% { background-position: 0 0; }
  100% { background-position: 80px 40px; } /* Move diagonally */
}

/* Subtle Background Pulse (Kept, slightly adjusted) */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, var(--dark-bg) 100%);
  z-index: -1; /* Behind content */
  pointer-events: none;
  animation: backgroundPulse 8s ease-in-out infinite alternate; /* Slower */
}

@keyframes backgroundPulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(1.01); }
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(5, 217, 232, 0.5);
  animation: subtleGlow 4s ease-in-out infinite alternate; /* Subtle persistent glow */
}

@keyframes subtleGlow {
  from { text-shadow: 0 0 8px rgba(5, 217, 232, 0.4); }
  to { text-shadow: 0 0 15px rgba(5, 217, 232, 0.6); }
}


h2 {
  font-size: .5rem;
  position: relative;
  padding-bottom: 10px;
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(5, 217, 232, 0.3);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), transparent);
  border-radius: 3px;
  box-shadow: 0 0 5px var(--neon-blue);
}

h3 {
  font-size: 1.75rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0, 255, 159, 0.3);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 16px;
}

ul {
    list-style: none;
    padding-left: 20px; /* Default padding for non-specific lists */
}

/* Default list item style (e.g., in paragraphs) */
ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 25px;
    color: var(--text-secondary);
}

ul li::before {
    content: "\f101"; /* FontAwesome right arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--neon-blue);
    position: absolute;
    left: 0;
    top: 2px;
    transition: transform var(--hover-transition), color var(--hover-transition);
}

ul li:hover::before {
    transform: translateX(5px);
    color: var(--neon-green);
}

/* --- Splash Screen --- */

#splashScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--darker-bg), #0d0221);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeInSplash 0.5s ease-in-out;
}

@keyframes fadeInSplash {
  from { opacity: 0; }
  to { opacity: 1; }
}

.splash-container {
  text-align: center;
  padding: 20px;
  max-width: 90%;
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 20px var(--neon-blue), inset 0 0 20px var(--neon-blue);
  background: rgba(13, 2, 33, 0.7);
  position: relative;
  overflow: hidden;
}

/* Subtle shine effect */
.splash-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent 45%,
    var(--neon-blue) 50%,
    transparent 55%
  );
  transform: rotate(30deg);
  opacity: 0.08; /* Made more subtle */
  animation: shine 8s linear infinite; /* Slowed down */
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.splash-container .title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(32px, 10vw, 72px); /* Responsive font size */
  color: var(--neon-blue);
  margin-bottom: 30px;
  text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
  letter-spacing: 5px;
  animation: glow 2s ease-in-out infinite alternate, textGradientShift 5s linear infinite; /* Added gradient shift */
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green), var(--neon-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes textGradientShift {
    to { background-position: 200% center; }
}

.splash-container p {
  font-size: clamp(14px, 4vw, 18px); /* Responsive font size */
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

@keyframes glow {
  0% { text-shadow: 0 0 5px var(--neon-blue); }
  100% { text-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-green); }
}

/* Optional: Removed float animation as it might be slightly distracting */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
} 

/* --- Main Content Transition --- */

#mainContent {
  display: none; /* Initially hidden */
  opacity: 0;
  transition: opacity 0.5s ease;
}

#mainContent.active {
  display: block; /* Set to block when active */
  opacity: 1;
}

/* --- Header --- */

.header {
  background: rgba(13, 2, 33, 0.9);
  color: var(--text-primary);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--neon-blue);
  box-shadow: 0 0 15px var(--neon-blue);
  animation: headerGlow 6s ease-in-out infinite alternate; /* Subtle border/shadow pulse */
}

@keyframes headerGlow {
    from {
        border-bottom-color: rgba(5, 217, 232, 0.7);
        box-shadow: 0 0 12px rgba(5, 217, 232, 0.4);
    }
    to {
        border-bottom-color: rgba(5, 217, 232, 1);
        box-shadow: 0 0 18px rgba(5, 217, 232, 0.6);
    }
}

.header .logo img {
  height: 40px;
  transition: transform var(--hover-transition), filter var(--hover-transition);
  filter: drop-shadow(0 0 5px var(--neon-blue));
}

.header .logo:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px var(--neon-blue));
}

.hamburger {
  display: none; /* Hidden by default, shown in media query */
  background: none;
  border: none;
  color: var(--neon-blue);
  font-size: 24px;
  cursor: pointer;
  margin-right: 10px;
  transition: color var(--hover-transition), transform var(--hover-transition), text-shadow var(--hover-transition);
  text-shadow: 0 0 5px var(--neon-blue);
}

.hamburger:hover {
  color: var(--neon-green);
  transform: scale(1.1);
  text-shadow: 0 0 10px var(--neon-green);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- Marquee --- */

.marquee {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  color: var(--dark-bg);
  padding: 12px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: var(--marquee-height);
  z-index: 900;
  box-shadow: 0 2px 10px var(--neon-blue);
  font-family: 'Share Tech Mono', monospace;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 100s linear infinite; /* Slightly slower */
  padding-left: 100%; /* Start off screen */
}

.marquee-inner span {
  margin-right: 60px;
  display: inline-block;
  padding: 0 10px;
  text-shadow: none; /* Clear body text-shadow */
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); } /* Move fully across */
}

/* --- Sidebar --- */

.sidebar {
  width: var(--sidebar-width);
  background: rgba(5, 5, 30, 0.9);
  backdrop-filter: blur(5px);
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 1000; /* Bold Orbitron */
  letter-spacing: 1px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding-top: calc(var(--header-height) + 20px);
  transition: left var(--slow-transition), box-shadow var(--slow-transition);
  z-index: 1100;
  border-right: 1px solid var(--neon-blue);
  box-shadow: 0 0 20px var(--neon-blue);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 18px 25px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 217, 232, 0.1);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color var(--slow-transition), color var(--hover-transition), box-shadow var(--hover-transition);
  color: var(--text-primary); /* Ensure default color */
  padding-left: 25px; /* Reset padding */
}

/* Remove global list style from sidebar items */
.sidebar li::before {
    content: none;
}

.sidebar li i {
  margin-right: 15px;
  font-size: 18px;
  color: var(--neon-blue);
  transition: color var(--hover-transition), transform var(--hover-transition);
  width: 25px; /* Fixed width for alignment */
  text-align: center;
}

 /* Wipe effect on hover */
 .sidebar li::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen left */
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 232, 0.2), transparent);
  transition: left var(0.1s); /* Use wipe transition */
  z-index: -1; /* Behind text and icon */
}

.sidebar li:hover {
  background: rgba(0, 217, 232, 0.1); /* Subtle background change */
  color: var(--neon-green);
  box-shadow: inset 0 0 10px rgba(0, 217, 232, 0.3);
}

.sidebar li:hover::after {
  left: 100%; /* Move wipe effect across */
}

.sidebar li:hover i {
  color: var(--neon-green);
  transform: scale(1.2) rotate(5deg); /* Add slight rotation */
}

/* Active sidebar item */
.sidebar li.active {
  background: rgba(0, 217, 232, 0.2);
  border-left: 4px solid var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: inset 0 0 15px rgba(0, 217, 232, 0.3);
  padding-left: 21px; /* Adjust padding for border */
}

.sidebar li.active i {
  color: var(--neon-blue);
  transform: scale(1.1); /* Slightly larger when active */
}

.close-btn {
  display: none; /* Hidden by default, shown in media query */
  background: none;
  border: none;
  color: var(--neon-blue);
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 25px;
  right: 25px;
  transition: color var(--hover-transition), transform var(--hover-transition);
}

.close-btn:hover {
  color: var(--neon-pink);
  transform: rotate(90deg);
}

/* --- Main Content Area --- */

.main-content {
  margin-left: var(--sidebar-width);
  padding: calc(var(--header-height) + var(--marquee-height) + 30px) 40px 40px;
  transition: margin-left var(--slow-transition);
  min-height: 100vh;
}

.tab-content {
  display: none; /* Hidden by default */
  animation: contentFadeIn 0.6s ease-in-out; /* Slightly slower fade */
}

.tab-content.active {
  display: block; /* Shown when active */
}

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

/* --- Cyber Panel Style --- */

.cyber-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 0 20px rgba(0, 217, 232, 0.2);
  position: relative;
  overflow: hidden;
  transition: border-color var(--hover-transition), box-shadow var(--hover-transition), transform var(--hover-transition);
  animation: panelGlow 8s ease-in-out infinite alternate; /* Subtle ambient glow */
}

@keyframes panelGlow {
    from {
        border-color: rgba(0, 217, 232, 0.25);
        box-shadow: 0 0 15px rgba(0, 217, 232, 0.15);
    }
    to {
        border-color: rgba(0, 217, 232, 0.35);
        box-shadow: 0 0 25px rgba(0, 217, 232, 0.25);
    }
}

/* Subtle diagonal sheen effect */
.cyber-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(5, 217, 232, 0.05) 50%, /* More subtle */
    transparent 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease; /* Slower transition */
}

.cyber-panel:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 217, 232, 0.4);
  transform: translateY(-5px);
  animation-play-state: paused; /* Pause ambient glow on hover */
}

.cyber-panel:hover::before {
  opacity: 0.6; /* Sheen appears on hover */
}

.cyber-panel h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
}

/* --- Button Styles --- */

.btn {
  background: transparent;
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  padding: 12px 24px;
  border-radius: 0; /* Sharp edges */
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: 'Share Tech Mono', monospace;
  text-shadow: 0 0 5px var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
  transition: all var(--hover-transition), text-shadow var(--hover-transition); /* Added text-shadow transition */
}

/* Wipe effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(5, 217, 232, 0.3), transparent);
  transition: left var(--wipe-transition); /* Use wipe transition */
  z-index: -1;
}

.btn i {
  font-size: 14px;
  transition: transform var(--hover-transition);
}

.btn:hover {
  background: var(--neon-blue);
  color: var(--dark-bg);
  text-shadow: none; /* Remove shadow when background is solid */
  box-shadow: 0 0 20px var(--neon-blue);
  transform: translateY(-3px);
}

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

.btn:hover i {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  background: var(--neon-green); /* Use green for active state */
  border-color: var(--neon-green);
  color: var(--dark-bg);
  text-shadow: none;
}

.btn:disabled {
  border-color: #555;
  color: #555;
  cursor: not-allowed;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  transform: none;
}

/* Button Variations */
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  min-width: auto;
}

.btn-primary {
  background: var(--neon-blue);
  color: var(--dark-bg);
  border-color: var(--neon-blue);
  text-shadow: none;
}
.btn-primary:hover {
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green);
}
.btn-primary:active {
  background: #00cc88; /* Slightly darker green */
  border-color: #00cc88;
}

.btn-success {
  border-color: var(--neon-green);
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}
.btn-success:hover {
  background: var(--neon-green);
  color: var(--dark-bg);
  box-shadow: 0 0 20px var(--neon-green);
  text-shadow: none;
}
.btn-success:active {
  background: #00cc88;
  border-color: #00cc88;
}

.btn-warning {
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  text-shadow: 0 0 5px var(--neon-yellow);
  box-shadow: 0 0 10px var(--neon-yellow);
}
.btn-warning:hover {
  background: var(--neon-yellow);
  color: var(--dark-bg);
  box-shadow: 0 0 20px var(--neon-yellow);
  text-shadow: none;
}
.btn-warning:active {
  background: #e6b800; /* Slightly darker yellow */
  border-color: #e6b800;
}

.btn-danger {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: 0 0 5px var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink);
}
.btn-danger:hover {
  background: var(--neon-pink);
  color: var(--dark-bg);
  box-shadow: 0 0 20px var(--neon-pink);
  text-shadow: none;
}
.btn-danger:active {
  background: #cc245a; /* Slightly darker pink */
  border-color: #cc245a;
}

/* --- Dashboard Specific Styles --- */

.bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 220px;
  margin-top: 30px;
}

.bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--hover-transition);
}

.bar-container:hover {
  transform: translateY(-5px);
}

.bar {
  width: 40px;
  background: linear-gradient(to top, var(--neon-blue), var(--neon-green));
  border-radius: 4px 4px 0 0;
  transition: height 0.8s ease-out, box-shadow var(--hover-transition); /* Slower height transition */
  box-shadow: 0 0 10px var(--neon-blue);
  position: relative; /* For potential pseudo-element effects */
}

/* Add subtle animation to bars */
.bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity var(--hover-transition);
    animation: barShine 3s linear infinite alternate;
}

@keyframes barShine {
    from { transform: translateY(10%); }
    to { transform: translateY(-10%); }
}

.bar-container:hover .bar {
  box-shadow: 0 0 15px var(--neon-blue), 0 0 20px var(--neon-green);
}

.bar-container:hover .bar::after {
    opacity: 0.5; /* Show shine on hover */
}

.value {
  font-size: 14px;
  font-weight: bold;
  color: var(--neon-blue);
  margin-bottom: 5px;
  transition: color var(--hover-transition);
}

.bar-container:hover .value {
    color: var(--neon-green);
}

.label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: var(--panel-bg);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--panel-border);
  transition: transform var(--hover-transition), box-shadow var(--hover-transition), border-color var(--hover-transition);
  box-shadow: 0 0 15px rgba(0, 217, 232, 0.1);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02); /* Add slight scale */
  box-shadow: 0 0 25px rgba(0, 217, 232, 0.3);
  border-color: var(--neon-blue);
}

.stat-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  text-transform: uppercase; /* Consistent styling */
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--neon-blue);
  transition: color var(--hover-transition);
}

.stat-card:hover .stat-value {
    color: var(--neon-green);
}

/* --- Wallet Specific Styles --- */

.wallet-section {
  margin-bottom: 30px;
}

.wallet-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.wallet-info-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid var(--neon-blue);
  transition: transform var(--hover-transition), box-shadow var(--hover-transition), border-color var(--hover-transition);
  box-shadow: 0 0 10px rgba(0, 217, 232, 0.1);
}

.wallet-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 217, 232, 0.3);
  border-color: var(--neon-green);
}

.wallet-info-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
}

#walletAddress {
  word-break: break-all;
  font-family: monospace;
  color: var(--neon-blue);
  font-size: 14px;
}

.wallet-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.transaction-item {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 217, 232, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--hover-transition);
  border-radius: 4px; /* Slight rounding */
}

.transaction-item:hover {
  background-color: rgba(0, 217, 232, 0.08); /* Slightly more visible hover */
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.transaction-in {
  background: rgba(0, 255, 170, 0.2);
  color: var(--neon-green);
  text-shadow: 0 0 3px rgba(0, 255, 170, 0.5);
}

.transaction-out {
  background: rgba(255, 42, 109, 0.2);
  color: var(--neon-pink);
  text-shadow: 0 0 3px rgba(255, 42, 109, 0.5);
}

/* --- Social Feed Specific Styles --- */

.post {
  margin-bottom: 25px;
  /* Inherits .cyber-panel styles if wrapped */
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px; /* Added gap */
}

.post-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* margin-right: 15px; Removed margin, using gap */
  object-fit: cover;
  border: 2px solid var(--neon-blue);
  transition: transform var(--hover-transition), box-shadow var(--hover-transition);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(5, 217, 232, 0.3);
}

.post-header img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--neon-blue);
}

.post-header span {
  font-weight: bold;
  font-size: 16px;
  transition: color var(--hover-transition);
  cursor: pointer;
  color: var(--text-primary); /* Ensure base color */
}

.post-header span:hover {
  color: var(--neon-blue);
}

.post-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.post-body {
  padding: 0 10px;
}

.post-body p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-primary);
  white-space: pre-wrap; /* Preserve line breaks */
  word-wrap: break-word;
}

.post-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 15px;
  gap: 15px; /* Use gap instead of margin */
}

.post-meta-item {
  /* margin-left: 15px; Removed margin */
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--hover-transition);
  cursor: default; /* Or pointer if interactive */
}

/* .post-meta-item:first-child { margin-left: 0; } Removed */

.post-meta-item i {
  font-size: 12px;
}

.post-meta-item:hover {
  color: var(--text-primary);
}

.social-tabs {
  display: flex;
  border-bottom: 2px solid rgba(0, 217, 232, 0.3);
  margin-bottom: 25px;
  position: relative;
}

.social-tab {
  flex: 1;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  position: relative;
  transition: color var(--hover-transition), background-color var(--hover-transition);
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  color: var(--text-secondary); /* Default inactive color */
}

.social-tab:hover {
  color: var(--neon-blue);
  background-color: rgba(0, 217, 232, 0.05); /* Subtle hover background */
}

.social-tab.active {
  color: var(--neon-blue);
}

.social-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px; /* Align with parent border */
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--neon-blue);
  animation: tabUnderline 0.4s ease; /* Slightly slower */
  box-shadow: 0 0 8px var(--neon-blue);
}

@keyframes tabUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.social-feed {
  animation: contentFadeIn 0.6s ease; /* Consistent fade-in */
}

/* Tag button style */
.community-tag {
  border-radius: 0;
  background: transparent;
  border-color: var(--neon-blue);
  color: var(--text-secondary);
  font-weight: normal;
  /* Inherits .btn styles */
}

.community-tag i {
  margin-right: 8px;
}

.community-tag:hover {
  background: var(--neon-blue);
  color: var(--dark-bg);
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px var(--neon-blue);
  transform: translateY(-3px);
}

/* Create Post Area */
#createPostTextarea {
  width: 100%;
  height: 100px;
  padding: 15px;
  border-radius: 0; /* Consistent sharp edges */
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  margin-bottom: 15px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  resize: vertical;
  transition: border-color var(--hover-transition), box-shadow var(--hover-transition);
}

#createPostTextarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
}

/* --- Trading Bot & Table Styles --- */

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.trading-table {
  width: 100%;
  border-collapse: separate; /* Use separate for border-radius */
  margin: 20px 0;
  background: var(--panel-bg);
  border-radius: 8px;
  overflow: hidden; /* Clip content to border-radius */
  border-spacing: 0; /* Remove space between cells */
}

.trading-table th,
.trading-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 217, 232, 0.1);
  text-align: left;
  transition: background-color var(--hover-transition);
}

.trading-table th {
  background: rgba(0, 217, 232, 0.2);
  color: var(--neon-blue);
  font-weight: normal; /* Use font style for emphasis */
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  position: sticky; /* Keep header visible on scroll */
  top: 0;
  z-index: 10;
}

.trading-table tbody tr:last-child td {
  border-bottom: none; /* Remove border from last row */
}

.trading-table tbody tr:nth-child(even) td {
  background-color: rgba(0, 217, 232, 0.05); /* Zebra striping */
}

.trading-table tbody tr {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; /* Faster feedback for rows */
}

/* Enhanced hover effect for table rows */
.trading-table tbody tr:hover {
  transform: scale(1.01); /* Slightly lift the row */
  box-shadow: 0 0 20px rgba(0, 217, 232, 0.2);
  z-index: 2; /* Bring row above others */
  /* background-color: rgba(40, 40, 40, 0.9); Darker background on hover */
}

/* Apply hover background to all cells in the row */
.trading-table tbody tr:hover td {
  background-color: rgba(5, 217, 232, 0.15); /* Highlight color */
  border-color: rgba(5, 217, 232, 0.3); /* Slightly stronger border */
}

.status-active { color: var(--neon-green); font-weight: bold; }
.status-pending { color: var(--neon-yellow); font-weight: bold; }
.status-executed { color: var(--neon-blue); font-weight: bold; }

.chart-container {
  position: relative;
  height: 350px;
  margin-bottom: 30px;
  background: var(--panel-bg); /* Use panel background */
  border-radius: 8px;
  padding: 15px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border); /* Consistent border */
}

/* Ensure charts fill container */
#bitcoinChart, #dcaChart, #walletGainsChart, #tradingBotGainsChart {
  width: 100%;
  height: 100%;
}

.trading-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

/* --- Exchanges Specific Styles --- */

.exchanges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.exchange-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  border-radius: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  transition: transform var(--hover-transition), box-shadow var(--hover-transition), border-color var(--hover-transition);
}

.exchange-card:hover {
  transform: translateY(-8px); /* More pronounced lift */
  box-shadow: 0 0 30px rgba(0, 217, 232, 0.4);
  border-color: var(--neon-blue);
}

.exchange-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  background: rgba(0, 217, 232, 0.1);
  border: 2px solid var(--neon-blue);
  transition: transform var(--hover-transition), box-shadow var(--hover-transition), background-color var(--hover-transition);
}

.exchange-card:hover .exchange-icon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 0 20px var(--neon-blue);
  background-color: rgba(0, 217, 232, 0.2);
}

.exchange-icon i {
  font-size: 36px;
  color: var(--neon-blue);
  transition: transform var(--hover-transition), color var(--hover-transition);
}

.exchange-card:hover .exchange-icon i {
  transform: scale(1.1);
  color: var(--neon-green); /* Change icon color on hover */
}

.exchange-card h2 {
  margin-bottom: 10px;
  text-align: center;
}

.exchange-card p {
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px; /* Slightly smaller description */
}

.exchange-stats {
  width: 100%;
  margin-top: 15px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  padding: 10px 5px;
  border-bottom: 1px dashed rgba(0, 217, 232, 0.2);
  transition: background-color var(--hover-transition), padding-left var(--hover-transition);
  border-radius: 4px;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row:hover {
  background-color: rgba(0, 217, 232, 0.1);
  padding-left: 10px; /* Indent on hover */
}

.stat-label { color: var(--text-secondary); }
.stat-value { color: var(--text-primary); font-weight: bold; }

/* --- Help Creator Specific Styles --- */

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
}

#helpCreatorQR {
  width: 250px;
  height: 250px;
  background: #fff; /* Keep white for QR readability */
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px var(--neon-blue);
  transition: transform var(--hover-transition), box-shadow var(--hover-transition);
}

#helpCreatorQR:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--neon-blue), 0 0 10px var(--neon-green); /* Add green hint */
}

.donate-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.donate-address {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 18px; /* More padding */
  border-radius: 8px;
  font-family: monospace;
  word-break: break-all;
  margin: 15px 0;
  text-align: center;
  border-left: 3px solid var(--neon-blue);
  transition: background-color var(--hover-transition), box-shadow var(--hover-transition), border-color var(--hover-transition);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.donate-address:hover {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 15px var(--neon-blue), inset 0 0 5px rgba(0, 0, 0, 0.1);
  border-color: var(--neon-green);
}

/* --- Account Specific Styles --- */

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

/* Ensure sections within the grid take full height if needed */
.account-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Inherits .cyber-panel styles if applied */
}

.account-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--neon-blue);
  object-fit: cover;
  transition: transform var(--hover-transition), box-shadow var(--hover-transition);
  box-shadow: 0 0 15px rgba(5, 217, 232, 0.4);
}

/* Hover effect tied to parent section hover */
.account-section:hover .account-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--neon-blue);
}

.account-stats {
  margin-top: auto; /* Pushes stats to bottom if section height allows */
}

.account-stats .stat-row {
  padding: 10px 5px;
  transition: background-color var(--hover-transition), padding-left var(--hover-transition);
  border-radius: 4px;
  /* Inherits base .stat-row styles */
}

.account-stats .stat-row:hover {
  background-color: rgba(0, 217, 232, 0.1);
  padding-left: 10px; /* Indent on hover */
}

/* --- Mobile Overlay --- */

#overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1050; /* Below sidebar (1100) but above most content */
  opacity: 0;
  transition: opacity var(--slow-transition);
  backdrop-filter: blur(5px);
}

#overlay.active {
  display: block; /* Show when active */
  opacity: 1;
}

/* --- Effects & Utilities --- */

/* Terminal Glitch Effect (Defined, apply class '.glitch' to elements) */
@keyframes glitch {
  0% { text-shadow: 0.05em 0 0 var(--neon-pink), -0.05em -0.025em 0 var(--neon-blue); opacity: 0.9; }
  14% { text-shadow: 0.05em 0 0 var(--neon-pink), -0.05em -0.025em 0 var(--neon-blue); opacity: 0.9; }
  15% { text-shadow: -0.05em -0.025em 0 var(--neon-pink), 0.025em 0.025em 0 var(--neon-blue); opacity: 1; }
  49% { text-shadow: -0.05em -0.025em 0 var(--neon-pink), 0.025em 0.025em 0 var(--neon-blue); opacity: 1; }
  50% { text-shadow: 0.025em 0.05em 0 var(--neon-pink), 0.05em 0 0 var(--neon-blue); opacity: 0.9; }
  99% { text-shadow: 0.025em 0.05em 0 var(--neon-pink), 0.05em 0 0 var(--neon-blue); opacity: 0.9; }
  100% { text-shadow: -0.025em 0 0 var(--neon-pink), -0.025em -0.025em 0 var(--neon-blue); opacity: 1; }
}

.glitch {
  animation: glitch 650ms infinite linear; /* Use linear for consistent flicker */
}

/* White Paper Specific List Styles (Overrides global ul li) */
#whitepaper ul {
  list-style: none; /* Explicitly reset */
  padding-left: 20px;
  margin-top: 15px;
}

#whitepaper li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 25px;
    color: var(--text-secondary);
}

#whitepaper li::before {
    content: "\f101"; /* FontAwesome right arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--neon-blue);
    position: absolute;
    left: 0;
    top: 2px;
    transition: transform var(--hover-transition), color var(--hover-transition);
}

#whitepaper li:hover::before {
    transform: translateX(5px);
    color: var(--neon-green);
}

#whitepaper .disclaimer {
    font-size: 14px;
    color: var(--neon-yellow);
    border-left: 3px solid var(--neon-yellow);
    padding: 10px 15px;
    background: rgba(247, 247, 0, 0.1);
    margin-top: 25px;
    font-style: italic;
    border-radius: 0 4px 4px 0; /* Slight rounding */
}

/* --- Responsive Design --- */

@media (max-width: 1024px) {
  /* Adjust padding for tablets */
  .main-content {
    padding: calc(var(--header-height) + var(--marquee-height) + 20px) 30px 30px;
  }
}

@media (max-width: 768px) {
  /* Sidebar behavior for mobile */
  .sidebar {
    left: calc(-1 * var(--sidebar-width)); /* Hide off-screen */
    transition: left var(--slow-transition); /* Ensure transition is defined */
  }
  .sidebar.open {
    left: 0; /* Slide in */
    box-shadow: 0 0 30px var(--neon-blue);
  }

  /* Main content takes full width when sidebar is closed */
  .main-content {
    margin-left: 0;
    padding: calc(var(--header-height) + var(--marquee-height) + 20px) 20px 20px;
  }

  /* Show hamburger, hide close button initially */
  .hamburger { display: block; }
  .close-btn { display: block; } /* Display within sidebar */

  .marquee { padding: 10px 0; font-size: 14px; } /* Adjust marquee */
  .marquee-inner span { margin-right: 30px; }

  .cyber-panel { padding: 20px; }

  /* Adjust grid layouts */
  .stats-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columns */
  .exchanges-grid { grid-template-columns: 1fr; } /* Single column */
  .wallet-info { grid-template-columns: 1fr; } /* Single column */
  .account-grid { grid-template-columns: 1fr; } /* Single column */
}

@media (max-width: 480px) {
  /* Disable intense effects on small screens if needed */
  /* body::before { animation: none; } */

  .splash-container .title { font-size: 28px; letter-spacing: 3px; }
  .splash-container p { font-size: 14px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .btn { padding: 10px 20px; font-size: 15px; }
  .btn-sm { padding: 6px 12px; font-size: 13px; }

  .stats-grid { grid-template-columns: 1fr; } /* Single column */

  /* Stack action buttons vertically */
  .wallet-actions { flex-direction: column; gap: 10px; }
  .wallet-actions .btn { width: 100%; }

  .trading-controls { flex-direction: column; gap: 10px; }
  .trading-controls .btn { width: 100%; }

  /* Stack social tabs */
  .social-tabs { flex-direction: column; border-bottom: none; }
  .social-tab {
      padding: 15px;
      text-align: left;
      border-bottom: 1px solid rgba(0, 217, 232, 0.3);
  }
  .social-tab:last-child { border-bottom: none; }
  .social-tab.active::after { display: none; } /* Remove underline */
  .social-tab.active { background-color: rgba(0, 217, 232, 0.1); } /* Indicate active with background */

  .account-grid { grid-template-columns: 1fr; } /* Single column */

  /* Adjust post layout */
  .post-header { flex-wrap: wrap; }
  .post-actions {
      margin-left: 0;
      margin-top: 10px;
      width: 100%;
      justify-content: flex-end;
  }
  .post-meta { flex-wrap: wrap; gap: 10px; }
}

/* --- Utility Classes --- */

.text-primary { color: var(--neon-blue); }
.text-success { color: var(--neon-green); }
.text-warning { color: var(--neon-yellow); }
.text-error { color: var(--neon-pink); }
.text-center { text-align: center; }

/* Margin helpers */
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }

/* Prevent Body Scroll when Mobile Sidebar is Open */
.no-scroll {
  overflow: hidden;
}

/* General Pulse Animation (Apply class '.pulse' to elements) */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.03); opacity: 1; } /* Slightly smaller scale */
  100% { transform: scale(1); opacity: 0.9; }
}
.pulse {
  animation: pulse 2.5s infinite ease-in-out; /* Slower pulse */
}

/* Tooltip Styling */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%; /* Position above the element */
  left: 50%;
  transform: translateX(-50%) translateY(-5px); /* Center horizontally, slight gap */
  background: var(--panel-bg);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap; /* Prevent wrapping */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--hover-transition), transform var(--hover-transition), visibility var(--hover-transition);
  border: 1px solid var(--neon-blue);
  z-index: 100; /* Ensure tooltip is above nearby elements */
  box-shadow: 0 0 10px var(--neon-blue);
  font-family: 'Share Tech Mono', monospace; /* Consistent font */
}
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px); /* Move further up on hover */
}
