/* ── Nav ── */
nav {
  background: #f7f5fa;
  display: flex;
  align-items: flex-end;
  position: relative;
}
nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, #5a1eb2, #e02596);
}

/* Links container */
.nav-links {
  display: flex;
  align-items: flex-end;
  flex: 1;
}

.nav-links a {
  flex: 1;
  text-align: center;
  padding: 0 10px 8px 10px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #444;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #7c3aed; }
.nav-links a.active {
  background: #6034c5;
  color: #fff;
  border-radius: 10px 10px 0 0;
  margin-top: 6px;
  padding: 0 10px;
  min-height: 50px;
  border-bottom: 8px solid #e02596;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: stretch;
  }
  nav::after {
    display: none;
  }

  /* Links hidden by default on mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #f7f5fa;
    border-top: 2px solid;
    border-image: linear-gradient(to right, #5a1eb2, #e02596) 1;
  }
  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    flex: none;
    text-align: left;
    min-height: 44px;
    padding: 0 20px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e8e0f5;
    justify-content: flex-start;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-links a.active {
    background: #6034c5;
    color: #fff;
    border-radius: 0;
    margin-top: 0;
    padding: 0 20px;
    min-height: 44px;
    border-bottom: 1px solid #7c3aed;
    justify-content: flex-start;
  }
}
