* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e6f1ff;
  background: url('/assets/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.85);
  z-index: -1;
  pointer-events: none;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,0.08);
  position: fixed;
  height: 100vh;
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar h2 {
  font-size: 1.2rem;
  letter-spacing: 1.8px;
  font-weight: 400;
  opacity: 0.75;
  color: #cbd5e1;
  margin: 0;
  text-align: center;
  flex: 1;
}

.close-btn {
  font-size: 2.2rem;
  color: #00e5ff;
  cursor: pointer;
  line-height: 1;
  display: none; /* hidden on desktop */
}

.sidebar a {
  display: block;
  padding: 16px 24px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 1.05rem;
}

.sidebar a:hover,
.sidebar a:focus {
  background: rgba(255,255,255,0.06);
  color: #00e5ff;
  padding-left: 32px;
}

/* MAIN CONTENT */
.main {
  margin-left: 240px;
  padding: 40px 32px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
}

.centered {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: #f1f5f9;
}

.splash-title {
  font-size: 4.5rem;
  letter-spacing: 4px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.centered button {
  background: transparent;
  border: 2px solid #00e5ff;
  color: #00e5ff;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.centered button:hover {
  background: #00e5ff;
  color: #0f172a;
  transform: translateY(-3px);
}

/* CARDS & GRID */
.card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  backdrop-filter: blur(15px);
  color: #e2e8f0;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 28px;
  color: #cbd5e1;
  cursor: pointer;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.7);
  padding: 10px 14px;
  border-radius: 10px;
}

/* LINKS LIST (Quick Links) */
.links-list a {
  display: block;
  padding: 12px 0;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1.1rem;
}

.links-list a:hover {
  color: #00e5ff;
}

/* MEDIA QUERIES - MOBILE */
@media (max-width: 768px) {
  .splash-title {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .centered button {
    padding: 14px 48px;
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 80%;
    max-width: 320px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 90px 20px 40px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card {
    padding: 24px;
  }

  h1#welcome {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .market-price {
    font-size: 1.5rem;
  }

  .links-list a {
    font-size: 1.15rem;
    padding: 14px 0;
  }

  /* Show close button only on mobile */
  .close-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .splash-title {
    font-size: 2.4rem;
  }

  .centered button {
    padding: 12px 40px;
    font-size: 1.1rem;
  }

  h1#welcome {
    font-size: 1.4rem;
  }
}

/* GENERAL LINKS & TEXT */
a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: #00e5ff;
}

.market-price {
  font-size: 1.8rem;
  font-weight: 500;
  cursor: pointer;
  display: block;
  margin: 8px 0 4px;
}

.market-price:hover {
  color: #00e5ff;
}

.loading {
  color: #94a3b8;
  font-style: italic;
}

.error {
  color: #f87171;
}