:root {
  --bg: #0b0b0d;
  --panel: #141418;
  --muted: #9aa0a6;
  --accent: #00e5ff;
  --accent-glow: 0 0 18px rgba(0,229,255,.65);
  --border: #1f1f27;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 10% -10%, #101019 0, var(--bg) 50%);
  color: #fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f0f14 0, #0b0b0d 100%);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
}
.sidebar h1 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--accent);
  text-shadow: var(--accent-glow);
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.sidebar li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #e8eaed;
  transition: transform .06s ease, border-color .2s;
}
.sidebar li a:hover {
  transform: translateY(-1px);
  border-color: rgba(0,229,255,.4);
}
.sidebar li em {
  font-style: normal;
  color: var(--muted);
  background: #0f1115;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-left: 10px;
}
.home-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  text-decoration: none;
}
.home-link:hover { color: #fff; }

.content {
  flex: 1;
  padding: 32px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  max-width: 780px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
h2 { margin: 0 0 8px; font-size: 26px; }
.muted { color: var(--muted); margin: 6px 0 16px; }

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 14px;
  max-width: 1000px;
}
.service-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: #e8eaed;
  transition: border-color .2s;
}
.service-card:hover { border-color: rgba(0,229,255,.4); }
.service-title { font-weight: 600; margin-bottom: 8px; }
.service-stock { color: var(--muted); }

.btn {
  display: inline-block;
  padding: 11px 18px;
  background: var(--accent);
  color: #001014;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--accent-glow);
  transition: transform .06s ease, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.reward {
  margin: 14px 0 8px;
  font-size: 20px;
  background: #0e1016;
  border: 1px solid rgba(0,229,255,.4);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--accent-glow);
  word-break: break-all;
}

.actions { margin-top: 14px; }

/* === Additions for auth buttons & popup === */
.auth-buttons {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 50;
}
.auth-buttons a, .auth-buttons form button {
  background: var(--panel);
  border: 1px solid var(--border);
  color: #e8eaed;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.auth-buttons a:hover, .auth-buttons form button:hover {
  border-color: rgba(0,229,255,.4);
}

.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #0e1016;
  border: 1px solid rgba(0,229,255,.4);
  color: #e8eaed;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--accent-glow);
  z-index: 60;
  max-width: 60vw;
}
.toast.error { border-color: #ff5252; }
.toast.success { border-color: #00e676; }
