:root {
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --dark-bg: #0f0f23;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glow-blue: rgba(59, 130, 246, 0.4);
  --glow-purple: rgba(139, 92, 246, 0.4);
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, var(--glow-purple) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, var(--glow-blue) 0%, transparent 50%);
  animation: moveBackground 20s ease-in-out infinite;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

@keyframes moveBackground {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10%, -10%); }
}


main h1 {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

main {
  flex: 1;
  
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 22px;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
  padding: 20px;
  padding-bottom: 80px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  overflow-y: auto;
}

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

/* Navbar */
nav.navbar {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 62, 0.95) 50%, rgba(15, 15, 35, 0.95) 100%);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(255, 140, 0, 0.15), 0 2px 10px rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
  position: relative;
  z-index: 100;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav .navbar-brand {
  color: #fff;
  font-size: 1rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

nav .navbar-brand:hover {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

nav .btn-wallet {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a3e;
  border-radius: 12px;
  font-weight: bold;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

nav .btn-wallet:hover {
  background: #fff;
  color: #1a1a3e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  border-color: var(--purple);
}

nav .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

nav .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

nav .btn-theme {
  border-color: #fff;
  color: #fff;
}

/* Footer */
footer {
  background: linear-gradient(135deg, rgba(26, 26, 62, 0.95), rgba(15, 15, 35, 0.98));
  backdrop-filter: blur(15px);
  color: #fff;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8em 0;
  box-shadow: 0 -2px 20px rgba(139, 92, 246, 0.2);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer .menu {
  flex: 1;
  text-align: center;
  padding: 0.5em 0.3em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  max-width: 80px;
}

footer .menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7b2ff2, #f357a8);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

footer .menu:hover {
  background: rgba(139, 92, 246, 0.1);
}

footer .menu.active::before {
  width: 70%;
}

footer .menu i {
  font-size: 1.25em;
  transition: all 0.3s ease;
  display: block;
  color: #fb9238;
}

footer .menu span {
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #a39f9f;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

footer .menu:hover i {
  transform: translateY(-2px);
  color: #f357a8;
}

footer .menu:hover span {
  color: #e0e6f6;
}

footer .menu.active i {
  color: #f357a8;
  text-shadow: 0 0 8px rgba(243, 87, 168, 0.5);
}

footer .menu.active span {
  color: #fff;
  font-weight: 600;
}

/* Responsive Footer */
@media (max-width: 768px) {
  footer {
    padding: 0.25em 0;
  }
  
  footer .menu {
    padding: 0.4em 0.2em;
    gap: 0.15em;
  }
  
  footer .menu i {
    font-size: 0.85em;
  }
  
  footer .menu span {
    font-size: 0.6em;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 0.2em 0;
  }
  
  footer .menu {
    padding: 0.35em 0.15em;
    gap: 0.1em;
  }
  
  footer .menu i {
    font-size: 0.8em;
  }
  
  footer .menu span {
    font-size: 0.55em;
  }
}

footer.d-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;   
}

/* Gradient text for welcome */
main h1, main {
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Simple toast / toaster */
.custom-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 90%;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.95));
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1050;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: auto;
  animation: toastBounce 0.5s ease;
}

@keyframes toastBounce {
  0%, 100% { transform: translateX(-50%) translateY(-6px); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

/* pulse hint for connect button when navigation blocked */
.btn-wallet.pulse {
  animation: pulse 0.9s ease;
}

@keyframes pulse {
  0% { 
    transform: translateY(0); 
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  }
  50% { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
  }
  100% { 
    transform: translateY(0); 
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  }
}

#content {
  overflow-y: hidden;
}
 
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-button {
  background: transparent;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--purple));
  border-radius: 10px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--purple), var(--blue));
  box-shadow: 0 0 10px var(--glow-purple);
}

/* Card styles for content sections */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Button animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Glassmorphism effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Glow effect */
.glow {
  box-shadow: 0 0 20px var(--glow-blue), 0 0 40px var(--glow-purple);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--glow-blue), 0 0 40px var(--glow-purple); }
  50% { box-shadow: 0 0 30px var(--glow-purple), 0 0 60px var(--glow-blue); }
}