:root {
  --bg: #0b0f19;
  --card: #101728;
  --text: #e9eefc;
  --muted: #a7b3d6;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #8b5cf6;
  --ok: #22c55e;
  --bad: #ef4444;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 10% 0%, rgba(139,92,246,0.15), transparent 50%),
              radial-gradient(900px 700px at 100% 30%, rgba(34,197,94,0.10), transparent 50%),
              var(--bg);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  background: rgba(11,15,25,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand__dot {
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(139,92,246,0.65);
}
.brand__title { font-weight: 700; letter-spacing: 0.2px; }
.brand__sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.shell {
  padding: 14px;
  padding-bottom: 86px;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(16,23,40,0.85);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.h1 { margin: 0 0 8px; font-size: 22px; }
.p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  appearance: none;
  border: 1px solid rgba(139,92,246,0.55);
  background: rgba(139,92,246,0.18);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn--ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.divider { height: 1px; background: var(--line); margin: 14px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tile {
  display: block;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  color: var(--text);
}
.tile__title { font-weight: 700; margin-bottom: 4px; }
.tile__sub { color: var(--muted); font-size: 12px; line-height: 1.3; }

.bottombar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 6px;
  justify-content: space-around;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,15,25,0.90);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.navlink {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  padding: 10px 8px;
  border-radius: 14px;
}
.navlink.active {
  color: var(--text);
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.45);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.input{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}