:root {
  --bg: #081733;
  --card: rgba(255,255,255,0.06);
  --accent: #3aa0ff;
  --accent2: #00ffd5;
  --text: #ffffff;
}

/* BASE */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #0a1f44, #050f25);
  color: var(--text);
  width: 100%;
}

* {
  box-sizing: border-box;
}


.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  margin: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.logo {
  font-weight: bold;
  font-size: 20px;
  color: var(--accent2);
}

.msg-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.msg-icon:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* FLOATING BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 460px;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.nav-item {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  cursor: pointer;
  transition: 0.3s;
}

.nav-item span {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
  color: var(--accent);
}

.nav-item:hover {
  color: white;
  transform: translateY(-3px);
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-item.active {
  color: white;
}

.nav-item.active span {
  color: var(--accent2);
  text-shadow: 0 0 10px var(--accent2);
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Only constrain on larger screens */
@media (min-width: 600px) {
  body {
    max-width: 480px;
    margin-inline: auto;
  }
}
