/* ── HEXACORE — nav.css (Premium 2026 Redesign) ── */

/* ── NAV SHELL ── */
#nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(2, 0, 10, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  height: 72px;
  display: flex; align-items: center;
  transition: all 0.4s;
}
/* scrolled state added by JS */
#nav.scrolled {
  background: rgba(2, 0, 10, 0.92);
  border-bottom-color: rgba(139, 92, 246, 0.18);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1440px; margin: 0 auto; width: 100%;
  padding: 0 28px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── LOGO ── */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 900; font-size: 1.2rem;
  letter-spacing: -0.04em;
  transition: 0.25s;
  flex-shrink: 0;
  background: linear-gradient(135deg, #c4b5fd, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-logo:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-logo img {
  height: 34px; border-radius: 8px;
  box-shadow: 0 0 14px rgba(139,92,246,0.5);
  transition: box-shadow 0.3s;
  flex-shrink: 0;
}
.nav-logo:hover img { box-shadow: 0 0 28px rgba(232,121,249,0.7); }

/* ── NAV LINKS ── */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px; padding: 5px;
}

.nav-lnk {
  position: relative;
  background: none; padding: 8px 16px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--t2); cursor: pointer;
  border-radius: 10px; transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-lnk:hover { color: var(--t1); background: rgba(255,255,255,0.06); }
.nav-lnk.on {
  color: var(--t1);
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(232,121,249,0.15));
  border: 1px solid rgba(139,92,246,0.25);
}
/* glowing dot indicator on active tab */
.nav-lnk.on::before {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--p3);
  box-shadow: 0 0 6px var(--p2);
}

/* ── NAV RIGHT ── */
.nav-r { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ── USER PILL ── */
.u-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  cursor: pointer; position: relative; transition: 0.2s;
}
.u-pill:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.08);
}
.u-av {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--p1), var(--pm));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; overflow: hidden;
  flex-shrink: 0;
}
.u-av img { width: 100%; height: 100%; object-fit: cover; }
.u-nm { font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em; }
.u-info { display: flex; flex-direction: column; }

/* ── DROPDOWN ── */
.u-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 260px;
  background: rgba(7,4,26,0.97);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 22px; padding: 8px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03) inset;
  backdrop-filter: blur(28px);
  display: none; flex-direction: column; z-index: 100;
  animation: ddSlide 0.25s cubic-bezier(0.16,1,0.3,1);
}
@keyframes ddSlide { from { transform: translateY(12px); opacity:0; } to { transform: translateY(0); opacity:1; } }

.u-pill:hover .u-dropdown,
.u-dropdown:hover { display: flex; }
/* bridge to prevent gap closing dropdown */
.u-pill::after { content: ''; position: absolute; top: 100%; right: 0; width: 260px; height: 12px; }

.ud-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 6px;
}
.ud-name { font-weight: 800; font-size: 1rem; margin-bottom: 3px; letter-spacing: -0.02em; }
.ud-role { font-size: 0.7rem; color: var(--t3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }

.ud-item {
  padding: 11px 16px; border-radius: 13px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--t2); transition: 0.15s;
  display: flex; align-items: center; gap: 11px; cursor: pointer;
}
.ud-item:hover { background: rgba(255,255,255,0.06); color: var(--t1); transform: translateX(3px); }
.ud-item.danger { color: #f87171; }
.ud-item.danger:hover { background: rgba(239,68,68,0.1); }

/* ── AUTH MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  z-index: 2000; display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: linear-gradient(160deg, rgba(13,8,35,0.98) 0%, rgba(8,3,22,0.99) 100%);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 28px; width: 100%; max-width: 460px;
  position: relative; overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 80px rgba(139,92,246,0.05) inset;
  animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modalIn {
  from { opacity:0; transform: translateY(36px) scale(0.94); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
/* Hexagon pattern inside modal header — Unicorn Studio style */
.auth-modal-banner {
  background: linear-gradient(150deg, #1a0b3d 0%, #2d0860 50%, #180038 100%);
  padding: 40px 40px 32px; text-align: center; position: relative;
  border-bottom: 1px solid rgba(139,92,246,0.15); overflow: hidden;
}
.auth-modal-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(167,139,250,0.35) 0%, transparent 65%),
    repeating-linear-gradient(
      60deg,
      rgba(139,92,246,0.04) 0px, rgba(139,92,246,0.04) 1px,
      transparent 1px, transparent 22px
    );
  pointer-events: none;
}
.auth-modal-banner::after {
  content: '✦';
  position: absolute; bottom: 16px; right: 28px;
  color: rgba(167,139,250,0.15); font-size: 2.5rem;
  animation: rotateStar 12s linear infinite;
}
@keyframes rotateStar { to { transform: rotate(360deg); } }

.auth-modal-banner .logo-txt {
  font-family: 'Inter', sans-serif; font-size: 2.4rem; font-weight: 900;
  letter-spacing: -0.05em; position: relative; z-index: 1;
  display: block; margin-bottom: 10px;
  background: linear-gradient(135deg, #c4b5fd, #e879f9, #a78bfa);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-modal-banner p {
  color: rgba(196,181,253,0.6); font-size: 0.9rem; position: relative; z-index: 1;
}
.auth-body { padding: 32px 40px 40px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 20;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.2s; font-size: 0.85rem; color: var(--t3);
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.modal-hd { text-align: center; margin-bottom: 32px; }
.logo-txt { font-family: 'Inter', sans-serif; font-size: 2.2rem; font-weight: 900; letter-spacing: -0.05em; }

.modal-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 5px; border-radius: 14px; margin-bottom: 28px;
}
.modal-tab {
  flex: 1; padding: 11px 10px; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: all 0.25s; color: var(--t3);
}
.modal-tab:hover { color: var(--t1); background: rgba(255,255,255,0.05); }
.modal-tab.on {
  background: linear-gradient(135deg, var(--p1), #9333ea);
  color: #fff; box-shadow: 0 4px 18px rgba(124,58,237,0.4);
}

/* ── RESPONSIVE NAV ── */

@media (max-width: 900px) {
  .nav-links { gap: 0; padding: 4px; }
  .nav-lnk { padding: 7px 11px; font-size: 0.8rem; }
  .hide-mobile { display: none; }
}
@media (max-width: 600px) {
  .nav-links {
    background: none; border: none;
    gap: 0; padding: 0;
  }
  .nav-lnk { padding: 6px 9px; font-size: 0.75rem; border-radius: 8px; }
  .u-nm { display: none; }
}
