/* ══════════════════════════════════════
   ANEXUS — Blue Theme
   ══════════════════════════════════════ */
:root {
  --bg:     #050d1a;
  --bg2:    #091629;
  --bg3:    #0d1f3c;
  --bg4:    #122448;
  --border: #1a3157;
  --border2:#1e3d6a;
  --text:   #ddeeff;
  --t2:     #6fa3c8;
  --t3:     #2d5278;
  --accent: #3b82f6;
  --accent2:#60a5fa;
  --accent3:#1d4ed8;
  --glow:   rgba(59,130,246,.15);
  --glow2:  rgba(59,130,246,.07);
  --green:  #34d399;
  --yellow: #fbbf24;
  --red:    #f87171;
  --mono:   'Space Mono', monospace;
  --ar:     'Cairo', sans-serif;
  --r:      12px;
  --nav-h:  62px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ar);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--ar); }
input, textarea, select { font-family: var(--ar); }

/* ── BACKGROUND CANVAS ── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.mesh-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59,130,246,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 70%, rgba(29,78,216,.07) 0%, transparent 60%);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: rgba(5,13,26,.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

/* LOGO */
.nav-brand { flex-shrink: 0; }
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}
.logo-wrap:active { cursor: grabbing; }
.logo-svg {
  width: 38px;
  height: 38px;
  transition: transform .3s, filter .3s;
  filter: drop-shadow(0 0 8px rgba(59,130,246,.4));
}
.logo-wrap:hover .logo-svg {
  transform: rotate(8deg) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(96,165,250,.7));
}
.logo-wrap.admin-active .logo-svg {
  filter: drop-shadow(0 0 18px rgba(52,211,153,.8));
}
.logo-text {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
  opacity: .9;
}

/* NAV CENTER TABS */
.nav-center {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.nav-tab {
  background: none;
  border: none;
  color: var(--t2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 7px;
  transition: all .2s;
}
.nav-tab.active {
  background: var(--accent);
  color: #fff;
}
.nav-tab:hover:not(.active) {
  color: var(--text);
  background: var(--bg3);
}

/* NAV RIGHT */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11px;
}
.upulse {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.cart-btn {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 7px 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent2); }
.cart-badge {
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ── PAGES ── */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  z-index: 1;
}
.page-active { display: block; animation: pageIn .35s ease; }
@keyframes pageIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

