:root {
  --bg:#071127;
  --panel: rgba(255,255,255,0.04);
  --muted: rgba(255,255,255,0.7);
  --accent-start:#06b6d4;
  --accent-end:#8b5cf6;
  --radius:14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(180deg, var(--bg) 0%, #042532 100%);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
  color: #000;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 14px 60px rgba(2,6,23,0.6);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

/* Sidebar */
nav.side {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.04);
  height: fit-content;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;

  background-image: url("/favicon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand h1 {
  font-size: 16px;
  margin: 0;
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.nav-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn[aria-current="true"] {
  background: linear-gradient(90deg, rgba(139,92,246,0.12), rgba(6,182,212,0.06));
  box-shadow: 0 10px 30px rgba(2,6,23,0.4);
}

/* Main area */
main.area {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero {
  padding: 28px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-left {
  flex: 1;
}

.hero h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.02;
  background: linear-gradient(90deg,#fff,#dbeafe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 8px 0 0 0;
  color: var(--muted);
  max-width: 60%;
}

.hero-stats {
  width: 180px;
  text-align: right;
}

.hero-stats-label {
  font-size: 16px;
  color: var(--muted);
}

.hero-stats-value {
  font-weight: 800;
  font-size: 18px;
  margin-top: 6px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 14px;
  margin-top: 8px;
}

.card {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-decoration: none;
  color: #ffffff;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(2,6,23,0.45);
}

.card h3 {
  margin: 0 0 6px 0;
  color: inherit;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  color: inherit;
}

a.card {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.01)
  );
  border: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;

  /* 🔑 link reset */
  text-decoration: none;
  color: #ffffff;
}

.empty {
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.04);
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .brand p {
    display: none;
  }

  .hero p {
    max-width: 100%;
  }
}