:root {
  --bg: #05070d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f8ff;
  --muted: #b8c4ea;
  --blue: #7be8ff;
  --holo: #7da8ff;
  --purple: #ac84ff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }

.app-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 14% 16%, rgba(123, 232, 255, 0.16), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(172, 132, 255, 0.14), transparent 24%),
    radial-gradient(circle at 70% 80%, rgba(125, 168, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #060811 0%, #05070d 100%);
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  min-height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; background: rgba(5, 7, 13, 0.7); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand-wrap { display: flex; align-items: center; gap: 0.9rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(123, 232, 255, 0.2), rgba(172, 132, 255, 0.18));
  border: 1px solid var(--line); font-family: "Orbitron", sans-serif; font-weight: 800;
}
.brand { font-family: "Orbitron", sans-serif; font-weight: 800; letter-spacing: 0.06em; }
.brand-sub { color: var(--muted); font-size: 0.88rem; }

.nav { display: flex; align-items: center; gap: 0.75rem; }
.nav-link {
  background: transparent; border: 1px solid transparent; color: #d8e0fb;
  padding: 0.75rem 0.95rem; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: white;
}
.nav-admin {
  background: linear-gradient(90deg, rgba(123,232,255,0.16), rgba(172,132,255,0.14));
  border-color: var(--line);
}
.mobile-menu-btn { display: none; background: transparent; color: white; border: 0; font-size: 1.4rem; }

.app-shell {
  width: min(1360px, calc(100% - 2rem)); margin: 1.25rem auto 2rem;
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1.25rem;
}
.sidebar, .content { min-width: 0; }

.sidebar-card, .card, .hero-card {
  background: linear-gradient(180deg, rgba(17, 22, 42, 0.86), rgba(8, 11, 22, 0.86));
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.sidebar-card { padding: 1.2rem; margin-bottom: 1rem; }
.content { display: grid; }
.view { display: none; }
.view.active { display: block; }
.hero-card { padding: 2rem; margin-bottom: 1.2rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--blue);
  font-size: 0.8rem; font-weight: 800; margin: 0 0 0.8rem;
}
h1, h2, h3, h4 { margin-top: 0; line-height: 1.08; }
h1 {
  font-family: "Orbitron", sans-serif; font-size: clamp(2.5rem, 6vw, 4.8rem);
  margin-bottom: 1rem; max-width: 10ch;
}
h1 span {
  background: linear-gradient(90deg, var(--blue), var(--holo), var(--purple), white);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lead, .muted, .card p, li, .tiny-note { color: var(--muted); }

.hero-actions, .section-head, .panel-head, .submission-head, .quick-links, .social-list, .footer {
  display: flex; gap: 0.85rem;
}
.hero-actions, .quick-links, .social-list { flex-wrap: wrap; }
.section-head, .panel-head, .submission-head, .footer {
  align-items: center; justify-content: space-between;
}

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { padding: 1.25rem; min-width: 0; }
.btn {
  border: 0; border-radius: 999px; padding: 0.85rem 1.05rem; cursor: pointer; font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #07111a; background: linear-gradient(90deg, var(--blue), var(--holo), #9de8ff); }
.btn-secondary { color: white; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.small-btn { padding: 0.55rem 0.8rem; }

.feature-list { padding-left: 1.2rem; margin-bottom: 0; }
.form { display: grid; gap: 0.95rem; }
.form label { display: grid; gap: 0.4rem; font-weight: 600; }
input, textarea {
  width: 100%; background: rgba(255,255,255,0.03); color: white;
  border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 0.95rem;
}
input:focus, textarea:focus {
  outline: 1px solid rgba(123, 232, 255, 0.55);
  border-color: rgba(123, 232, 255, 0.55);
}
.stack-list { display: grid; gap: 0.75rem; }
.item-card {
  padding: 0.95rem; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.tag {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 0.35rem 0.65rem;
  font-size: 0.82rem; background: rgba(123, 232, 255, 0.08);
  border: 1px solid rgba(123, 232, 255, 0.15); color: #dffbff; margin-bottom: 0.75rem;
}
.item-actions { margin-top: 0.85rem; display: flex; gap: 0.6rem; }
.quick-links a, .social-pill {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 0.75rem 0.95rem;
  text-decoration: none; color: white; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
}
.footer { width: min(1360px, calc(100% - 2rem)); margin: 0 auto 1.5rem; color: var(--muted); }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}
@media (max-width: 860px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .mobile-menu-btn { display: block; }
  .nav {
    display: none; position: absolute; right: 1rem; top: 72px; width: min(280px, calc(100% - 2rem));
    flex-direction: column; align-items: stretch; background: rgba(9, 12, 24, 0.98);
    border: 1px solid var(--line); border-radius: 20px; padding: 0.8rem; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .section-head, .panel-head, .submission-head, .footer { flex-direction: column; align-items: flex-start; }
}
