/* static/css/navbar.css — AICUEVANA navbar (fully scoped to #nxNav) */
#nxNav {
  --bg: #0a0810; --cyan: #22d3ee; --teal: #2dd4bf; --gold: #fbbf24;
  --purple: #a855f7; --pink: #ec4899; --red: #f87171;
  display: contents;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
#nxNav *, #nxNav *::before, #nxNav *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ============ TOP BAR ============ */
#nxNav .topbar {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(168, 85, 247, 0.10);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 22px 4px;
  /* Branding ▸ "closeness to the left edge". Right side keeps the classic 22px;
     only the leading edge is operator-controlled. */
  padding-left: var(--nx-edge-left, 22px);
  /* iOS Safari cannot smoothly interpolate `backdrop-filter`; animating it on
     a sticky element while crossing the scroll boundary (scrollY ~40) forces a
     compositor re-render that reads as a visible glitch when flinging back up
     to the very top. Transition only the non-compositor props; the blur snaps
     onto its own layer instead. `translateZ(0)` pins the bar to its own
     compositor layer so toggling the class never re-flows the page. */
  transform: translateZ(0);
  will-change: transform;
  transition: background 0.3s ease, border-color 0.3s ease;
}
/* Frosted brand-glass wash behind the navbar, extends into the iOS safe area */
#nxNav .topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(130% 220% at 15% -10%, rgba(168, 85, 247, 0.22), transparent 50%),
    radial-gradient(130% 220% at 85% -10%, rgba(34, 211, 238, 0.14), transparent 50%),
    linear-gradient(180deg,
      rgba(16, 10, 30, 0.80) 0%,
      rgba(12, 8, 22, 0.50) 45%,
      rgba(10, 8, 16, 0.16) 80%,
      transparent 100%);
  transition: opacity 0.3s ease;
}
#nxNav .topbar.scrolled::before {
  opacity: 0;
}
#nxNav .topbar.scrolled {
  background: rgba(10, 8, 16, .78);
  border-bottom: 1px solid rgba(168, 85, 247, .18);
}
/* Frosted glass only where it is stable. On touch / coarse-pointer devices
   (iOS Safari, iPadOS) the blur must NEVER appear inside the `.scrolled`
   class flip: toggling backdrop-filter none<->blur() on a position:sticky bar
   while the full-bleed hero video is composited beneath it forces WebKit to
   rebuild the backdrop root on every 40px scroll-boundary crossing. Flinging
   back up near the hero crosses that line several times per gesture, which
   reads as the navbar + hero glitching. Those devices get the same dark tint
   (slightly more opaque for readability) with no filter at all. */
@media (hover: hover) and (pointer: fine) {
  #nxNav .topbar.scrolled {
    background: rgba(10, 8, 16, .78);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
  }
}
@media (hover: none), (pointer: coarse) {
  #nxNav .topbar.scrolled {
    background: rgba(10, 8, 16, .9);
  }
}
/* Branding ▸ fixed bar height: the bar stops hugging its content and the row
   centers vertically inside the chosen height instead. */
#nxNav .topbar.fixed-h { padding-top: calc(4px + env(safe-area-inset-top, 0px)); }
#nxNav .topbar.fixed-h .navbar {
  min-height: calc(var(--nx-bar-h, 56px) - env(safe-area-inset-top, 0px));
}
#nxNav .navbar { display: flex; align-items: center; gap: 16px; max-width: 1300px; margin: 0 auto; }
#nxNav .spacer { flex: 1; }

/* ============ HOME BUTTON ============ */
#nxNav .home-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .07); color: #fff;
  display: grid; place-items: center;
  cursor: pointer; flex-shrink: 0; text-decoration: none;
  transition: background .25s ease, transform .2s ease;
}
#nxNav .home-btn:hover { background: rgba(255, 255, 255, .16); transform: scale(1.06); }
#nxNav .home-btn svg { width: 21px; height: 21px; }

/* ============ LOGO ============ */
#nxNav .logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
#nxNav .logo img { height: var(--nx-logo-h, 30px); width: auto; object-fit: contain; display: block; }
#nxNav span.logo { cursor: default; }   /* Branding ▸ home_mode=hidden renders the logo unlinked */

/* ============ SVG DEFS CONTAINER ============ */
#nxNav .nx-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============ LIQUID GLASS PILLS ============ */

#nxNav .pill {
  --c: var(--cyan);
  --mx: 50%;
  --my: -40%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: var(--c);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--c) 85%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25),
              0 0 14px color-mix(in srgb, var(--c) 22%, transparent);
  transition: box-shadow 0.25s ease, transform 0.2s ease,
              background 0.25s ease;
}

#nxNav .pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Edge refraction + pointer-tracked specular */
#nxNav .pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.25s ease;
  background: radial-gradient(140% 180% at var(--mx) var(--my),
              rgba(255, 255, 255, 0.10), transparent 46%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 1.4px 2.4px 1px -1.6px rgba(255, 255, 255, 0.35),
    inset -1.2px -1.8px 1.6px -1.2px rgba(255, 255, 255, 0.10),
    inset 0 -5px 7px -4px color-mix(in srgb, var(--c) 50%, transparent),
    inset 0 4px 6px -4px rgba(255, 255, 255, 0.12);
}

#nxNav .pill:hover {
  transform: translateY(-1px);
}

#nxNav .pill:hover,
#nxNav .pill.active {
  background: color-mix(in srgb, var(--c) 24%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 45%, transparent),
              0 4px 14px rgba(0, 0, 0, 0.3);
}

#nxNav .pill:hover::after,
#nxNav .pill.active::after {
  opacity: 1;
}

/* ---------- Variants (same palette) ---------- */

#nxNav .pill-nexa    { --c: var(--cyan); }
#nxNav .pill-contest { --c: var(--teal); }
#nxNav .pill-ranking { --c: var(--gold); }

/* ── AI Shorts: rainbow liquid-glass pill ─────────────────── */

#nxNav .pill-shorts {
  --c: #e879f9;
  color: #fff;
  background: rgba(38, 14, 70, 0.30);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  box-shadow:
    0 0 18px rgba(217, 70, 239, 0.35),
    0 0 32px rgba(56, 189, 248, 0.18);
}

/* Iridescent swirl — oversized blurred disc spinning under the glass */
#nxNav .pill-shorts::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 220%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  opacity: 0.5;
  background:
    radial-gradient(closest-side, transparent 55%, rgba(24, 8, 48, 0.35)),
    conic-gradient(
      from 0deg,
      #f9a8d4, #fcd34d, #7dd3fc, #a5b4fc, #f0abfc, #f9a8d4
    );
  filter: blur(12px) saturate(1.25);
  transition: filter 0.3s ease;
  animation: pill-rainbow-swirl 7s linear infinite;
  will-change: transform;
}

/* OKLCH upgrade — perceptually even, pearly hue rotation */
@supports (color: oklch(0.7 0.2 320)) {
  #nxNav .pill-shorts::before {
    background:
      radial-gradient(closest-side, transparent 55%, rgba(24, 8, 48, 0.35)),
      conic-gradient(
        from 0deg in oklch,
        oklch(0.82 0.15  15),
        oklch(0.88 0.13  75),
        oklch(0.81 0.13 215),
        oklch(0.70 0.17 280),
        oklch(0.74 0.19 330),
        oklch(0.82 0.15  15)
      );
  }
}

#nxNav .pill-shorts:hover,
#nxNav .pill-shorts.active {
  border-color: rgba(255, 255, 255, 0.60);
  box-shadow:
    0 0 22px rgba(232, 121, 249, 0.55),
    0 0 46px rgba(56, 189, 248, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.30);
}

#nxNav .pill-shorts:hover::before,
#nxNav .pill-shorts.active::before {
  filter: blur(10px) saturate(1.6) brightness(1.12);
}

/* Brighter specular + glass highlights over the rainbow */
#nxNav .pill-shorts::after {
  opacity: 0.85;
  background: radial-gradient(140% 180% at var(--mx) var(--my),
              rgba(255, 255, 255, 0.22), transparent 40%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 1.4px 2.4px 1px -1.6px rgba(255, 255, 255, 0.6),
    inset -1.2px -1.8px 1.6px -1.2px rgba(255, 255, 255, 0.20),
    inset 0 -5px 7px -4px color-mix(in srgb, var(--c) 65%, transparent),
    inset 0 4px 6px -4px rgba(255, 255, 255, 0.20);
}

#nxNav .pill-shorts:hover::after,
#nxNav .pill-shorts.active::after {
  opacity: 1;
}

/* Swirl + gentle "sloshing" breath */
@keyframes pill-rainbow-swirl {
  0%   { transform: rotate(0turn)  scale(1);    }
  50%  { transform: rotate(.5turn) scale(1.18); }
  100% { transform: rotate(1turn)  scale(1);    }
}

@media (prefers-reduced-motion: reduce) {
  #nxNav .pill-shorts::before { animation: none; }
}

/* ============ AUTH (logged-out) ============ */
#nxNav .auth { display: flex; align-items: center; gap: 18px; }
#nxNav .login {
  color: #e5e7eb; font-size: 15px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: color .2s ease;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
#nxNav .login:hover { color: #fff; }
#nxNav .register {
  position: relative; overflow: hidden;
  background: #22d3ee; color: #08131a;
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 11px 26px; border-radius: 999px;
  white-space: nowrap; border: none; cursor: pointer;
  transition: box-shadow .25s ease, transform .2s ease;
}
#nxNav .register:hover { box-shadow: 0 0 22px rgba(34, 211, 238, .55); transform: translateY(-1px); }
#nxNav .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transform: scale(0);
  animation: nxRipple .55s ease-out forwards;
  pointer-events: none;
}
@keyframes nxRipple { to { transform: scale(3); opacity: 0; } }

/* ============ AVATAR + DROPDOWN ============ */
#nxNav .avatar-wrap { position: relative; flex-shrink: 0; }
#nxNav .avatar {
  position: relative; width: 46px; height: 46px;
  border-radius: 50%; padding: 2.5px; border: none; cursor: pointer;
  display: block; text-decoration: none;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.4), rgba(34, 211, 238, 0.35));
  transition: transform .2s ease, box-shadow .25s ease;
}
#nxNav .avatar:hover { transform: scale(1.05); box-shadow: 0 0 18px rgba(168, 85, 247, .5); }
#nxNav .avatar .inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #0e7490);
  display: grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .5px;
}
#nxNav .avatar::after {
  content: ''; position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #4ade80; border: 2.5px solid transparent;
}
#nxNav .avatar .inner img,
#nxNav .mm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ HAMBURGER ============ */
#nxNav .hamburger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .07);
  cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 4.5px;
  transition: background .25s ease;
}
#nxNav .hamburger:hover { background: rgba(255, 255, 255, .16); }
#nxNav .hamburger span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s ease, opacity .25s ease, width .25s ease;
}
#nxNav .hamburger span:nth-child(2) { width: 13px; margin-right: 5px; }
#nxNav .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#nxNav .hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
#nxNav .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ MOBILE DRAWER ============ */
#nxNav .backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 3, 10, .65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  z-index: 150;
}
#nxNav .backdrop.open { opacity: 1; visibility: visible; }

#nxNav .mobile-menu {
  position: fixed; top: 0; right: 0;
  height: 100dvh; width: min(330px, 88vw);
  background: #0d0a16;
  border-left: 1px solid rgba(168, 85, 247, .18);
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.32, .72, .28, 1);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px
           calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
#nxNav .mobile-menu.open { transform: none; visibility: visible !important; }

  /* Mobile: the floating dock (z-index 1200) overlaps the drawer
     (z-index 200), covering the last items (e.g. Log out). Give the
     drawer its own touch scrorollable layer and bottom breathing room
     so every item stays reachable. */
  @media (max-width: 639px) {
    #nxNav .mobile-menu {
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    }
  }


#nxNav .mm-close {
  align-self: flex-end; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .07);
  color: #fff; font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, transform .3s ease;
}
#nxNav .mm-close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }

#nxNav .mm-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .12), rgba(34, 211, 238, .08));
  border: 1px solid rgba(168, 85, 247, .25);
  margin: 8px 0 4px; text-decoration: none;
}
#nxNav .mm-user .mm-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #0e7490);
  display: grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 800; font-size: 15px;
  border: 2px solid rgba(168, 85, 247, .6); flex-shrink: 0;
}
#nxNav .mm-user .name { color: #fff; font-size: 15px; font-weight: 700; }
#nxNav .mm-user .hint { color: #a78bfa; font-size: 12.5px; font-weight: 500; }

#nxNav .mm-label {
  color: #6b6b7e; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; margin: 18px 6px 8px;
}
#nxNav .mm-label.mm-upper { text-transform: uppercase; }

#nxNav .mm-row-form { display: block; }
#nxNav .mm-row {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 10px; border-radius: 12px;
  text-decoration: none; color: #e5e7eb;
  font-size: 15px; font-weight: 600;
  border: none; background: none;
  width: 100%; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: background .2s ease, transform .15s ease;
}
#nxNav .mm-row:active { transform: scale(.98); }
#nxNav .mm-row .icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c); flex-shrink: 0;
  transition: background .2s ease, color .2s ease;
}
#nxNav .mm-row .icon svg { width: 18px; height: 18px; }
#nxNav .mm-row:hover { background: color-mix(in srgb, var(--c) 12%, transparent); }
#nxNav .mm-row:hover .icon { background: var(--c); color: #0d0a16; }
#nxNav .mm-row .chev { margin-left: auto; color: #55556a; }
#nxNav .mm-row .chev svg { width: 16px; height: 16px; display: block; }
/* Avatar Market — próximamente (no navega aún) */
#nxNav .mm-row.mm-soon-row { cursor: default; }
#nxNav .mm-row .mm-soon { margin-left: auto; flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: 10.5px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
#nxNav .mm-row.logout { color: var(--red); }

#nxNav .mm-auth { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
#nxNav .mm-auth a { text-decoration: none; }
#nxNav .mm-auth .register, #nxNav .mm-auth .login-btn {
  text-align: center; padding: 13px; border-radius: 12px; font-size: 15px;
}
#nxNav .mm-auth .login-btn {
  background: rgba(255, 255, 255, .07);
  color: #fff; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  transition: background .2s ease;
}
#nxNav .mm-auth .login-btn:hover { background: rgba(255, 255, 255, .14); }

/* staggered entrance */
#nxNav .mobile-menu.open .mm-row,
#nxNav .mobile-menu.open .mm-user { animation: nxSlideIn .4s ease both; }
#nxNav .mobile-menu.open .mm-user { animation-delay: .05s; }
#nxNav .mobile-menu.open .mm-row:nth-of-type(1) { animation-delay: .08s; }
@keyframes nxSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

/* nav-links gap between pills */
#nxNav .nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ RESPONSIVE BREAKPOINT ============ */
#nxNav .logout-btn-wrap { margin: 0 4px 0 2px; flex-shrink: 0; }
#nxNav .logout-icon {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(168, 85, 247, .28);
  border-radius: 12px;
  background: rgba(168, 85, 247, .10);
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
#nxNav .logout-icon:hover {
  transform: scale(1.06);
  background: rgba(248, 113, 113, .16);
  border-color: rgba(248, 113, 113, .55);
  color: #f87171;
  box-shadow: 0 0 16px rgba(248, 113, 113, .35);
}
#nxNav .logout-icon:active { transform: scale(.96); }
#nxNav .logout-icon svg { display: block; }

@media (max-width: 900px) {
  #nxNav .nav-links, #nxNav .auth, #nxNav .avatar-wrap, #nxNav .logout-btn-wrap { display: none; }
  #nxNav .hamburger { display: flex; }
  #nxNav .topbar {
    padding: calc(6px + env(safe-area-inset-top, 0px)) 16px 4px;
    padding-left: max(8px, calc(var(--nx-edge-left, 22px) - 6px));
  }
  #nxNav .home-btn, #nxNav .hamburger { width: 40px; height: 40px; }
  #nxNav .logo img { height: max(18px, calc(var(--nx-logo-h, 30px) * 0.86)); }
}

/* ── Notification bell ─────────────────────────────────────── */
.notif-wrap{position:relative;flex-shrink:0;margin-right:12px}
.notif-bell{display:flex;align-items:center;justify-content:center;width:46px;height:46px;
  border-radius:50%;color:rgba(255,255,255,.72);text-decoration:none;cursor:pointer;
  transition:color .18s ease,transform .18s ease,background .18s ease}
.notif-bell:hover{color:#fff;background:rgba(255,255,255,.06);transform:scale(1.06)}
.notif-bell:active{transform:scale(.94)}
.notif-bell:focus-visible{outline:2px solid #00E5FF;outline-offset:2px}
.notif-badge{position:absolute;left:4px;bottom:4px;min-width:17px;height:17px;padding:0 4px;
  border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;
  line-height:17px;text-align:center;pointer-events:none;
  box-shadow:0 0 0 2px rgba(6,6,14,.92)}
.notif-badge[hidden]{display:none}
#nxNav .mm-row .icon{position:relative}
.mm-notif-badge{left:auto;right:-5px;bottom:-5px;min-width:15px;height:15px;line-height:15px;font-size:9px}
@media (prefers-reduced-motion:reduce){.notif-bell{transition:none}}
@media (max-width:900px){#nxNav .notif-wrap{display:none}}

/* ── Desktop avatar account menu (hover / focus-within) ─────────────────── */
#nxNav .avatar-menu,
#nxNav .pill-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 236px;
  padding: 8px;
  background: rgba(18, 10, 32, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 999;
}
/* invisible bridge so the menu stays open while moving avatar -> menu */
#nxNav .avatar-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
#nxNav .avatar-wrap:hover .avatar-menu,
#nxNav .avatar-wrap:focus-within .avatar-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#nxNav .am-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
#nxNav .am-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
#nxNav .am-item:focus-visible { outline: 2px solid #00E5FF; outline-offset: -2px; }
#nxNav .am-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
#nxNav .am-premium { color: #ffd166; }
#nxNav .am-premium:hover { background: rgba(255, 209, 102, .1); color: #ffd166; }
#nxNav .am-premium svg { opacity: 1; }
#nxNav .am-sep { height: 1px; margin: 6px 4px; background: rgba(255, 255, 255, .1); }
#nxNav .am-grouplabel { margin: 5px 12px 2px; color: #6b6b7e; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; line-height: 1.2; }
#nxNav .am-logout-form { margin: 0; }
#nxNav .am-logout { color: #f87171; }
#nxNav .am-logout:hover { background: rgba(248, 113, 113, .1); color: #f87171; }

/* View profile — brand cyan accent */
#nxNav .am-profile { color: #00E5FF; }
#nxNav .am-profile svg { opacity: 1; }
#nxNav .am-profile:hover { background: rgba(0, 229, 255, .12); color: #00E5FF; }

/* Upload video — louder but still on-palette (brand cyan) */
#nxNav .am-upload {
  color: #00E5FF;
  background: rgba(0, 229, 255, .12);
  border: 1px solid rgba(0, 229, 255, .3);
  margin: 4px 0;
  box-shadow: 0 0 16px rgba(0, 229, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
}
#nxNav .am-upload svg { opacity: 1; }
#nxNav .am-upload:hover {
  background: rgba(0, 229, 255, .22);
  border-color: rgba(0, 229, 255, .55);
  color: #7deffb;
  box-shadow: 0 0 24px rgba(0, 229, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
}
#nxNav .am-lang { cursor: default; }
#nxNav .am-lang:hover { background: transparent; }
#nxNav .am-lang-toggle { display: flex; gap: 4px; margin-left: auto; }
#nxNav .am-lang-btn {
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
#nxNav .am-lang-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
#nxNav .am-lang-btn.active { background: #00E5FF; color: #04141a; border-color: transparent; }

/* ── Go Premium modal ────────────────────────────────────────────────────── */
#nxNav .nx-premium-modal {
  position: fixed;
  inset: 0;
  /* Above the /profile membership/tip/message modals (.profile-modal-backdrop
     is z-index 9999) so the close button is never covered when both are up. */
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#nxNav .nx-premium-modal[hidden] { display: none; }
#nxNav .nx-premium-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 10, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#nxNav .nx-premium-dialog {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  /* SOLID: el alpha .96 dejaba filtrar el contenido de la pagina (banner My
     Plans, tarjetas) como barras fantasma detras del titulo y del boton x */
  background: #120a20;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
#nxNav .nx-premium-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  cursor: pointer;
  transition: all .15s;
}
#nxNav .nx-premium-close:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
#nxNav .nx-premium-dialog h2 { margin: 0 0 4px; font-size: 1.55rem; color: #fff; }
#nxNav .nx-premium-sub { margin: 0 0 20px; opacity: .65; font-size: .95rem; color: rgba(255,255,255,.8); }
@media (max-width: 640px) {
  #nxNav .nx-premium-dialog { padding: 18px; }
}

/* ── Go Premium modal: pricing component layout overrides ───────────────── */
#nxNav .nx-premium-dialog { max-width: min(1060px, 94vw); }
/* Consistent open size: the dialog keeps its final footprint from the
   first frame (no small 'Loading plans' flash jumping to the full grid). */
#nxNav .nx-premium-dialog .pt-loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0 0;
  color: #9a9aa6;
  font-size: 14px;
}
#nxNav .nx-premium-dialog .pt-loading .sk {
  min-height: 320px;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(255,255,255,.05) 40%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.05) 60%);
  background-size: 200% 100%;
  animation: nxSk 1.1s linear infinite;
}
@keyframes nxSk { to { background-position: -200% 0; } }
@media (max-width: 980px) {
  #nxNav .nx-premium-dialog .pt-loading { grid-template-columns: 1fr; }
  #nxNav .nx-premium-dialog .pt-loading .sk { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  #nxNav .nx-premium-dialog .pt-loading .sk { animation: none; }
}
#nxNav .nx-premium-dialog .pt-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  /* 34px top: floating card badges (top:-15px) must clear the header row
     (title + close button) instead of crossing it */
  padding: 34px 0 0;
  align-items: stretch;
}
#nxNav .nx-premium-dialog .pt-card,
#nxNav .nx-premium-dialog .pt-card--featured {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 26px 22px 24px;
}
#nxNav .nx-premium-dialog .pt-head { gap: 12px; }
#nxNav .nx-premium-dialog .pt-icon { width: 46px; height: 46px; border-radius: 13px; }
#nxNav .nx-premium-dialog .pt-icon svg { width: 22px; height: 22px; }
#nxNav .nx-premium-dialog .pt-name { font-size: 19px; }
#nxNav .nx-premium-dialog .pt-price { margin-top: 18px; }
#nxNav .nx-premium-dialog .pt-amount { font-size: 40px; }
#nxNav .nx-premium-dialog .pt-period { font-size: 13px; }
#nxNav .nx-premium-dialog .pt-divider { margin: 18px 0 20px; }
#nxNav .nx-premium-dialog .pt-features { gap: 12px; margin-bottom: 22px; flex: 1; }
#nxNav .nx-premium-dialog .pt-features li {
  gap: 10px;
  font-size: 13.5px;
  align-items: flex-start;
  line-height: 1.45;
}
#nxNav .nx-premium-dialog .pt-features svg { width: 16px; height: 16px; margin-top: 2px; }
#nxNav .nx-premium-dialog .pt-btn { padding: 13px 16px; font-size: 14px; }
@media (max-width: 760px) {
  #nxNav .nx-premium-dialog .pt-wrap { grid-template-columns: 1fr; }
  #nxNav .nx-premium-dialog .pt-features { flex: 0; }
}

/* avatar menu: Nexa (cyan) & AI Contest (teal) items */
#nxNav .am-nexa { color: #00E5FF; }
#nxNav .am-nexa svg { opacity: 1; }
#nxNav .am-nexa:hover { background: rgba(0, 229, 255, .1); color: #00E5FF; }
#nxNav .am-fluxa { color: #a78bfa; }
#nxNav .am-fluxa svg { opacity: 1; }
#nxNav .am-fluxa:hover { background: rgba(167, 139, 250, .1); color: #a78bfa; }
#nxNav .am-contest { color: #2dd4bf; }
#nxNav .am-contest svg { opacity: 1; }
#nxNav .am-contest:hover { background: rgba(45, 212, 191, .1); color: #2dd4bf; }

/* AI Request — signature green (money icon) */
#nxNav .am-airequest { color: #22c55e; }
#nxNav .am-airequest svg { opacity: 1; }
#nxNav .am-airequest:hover { background: rgba(34, 197, 94, .1); color: #22c55e; }
/* Avatar Market — próximamente (no navega aún) */
#nxNav .am-avatar { color: #ec4899; }
#nxNav .am-avatar svg { opacity: 1; }
#nxNav .am-avatar.am-soon-item { cursor: default; }
#nxNav .am-avatar.am-soon-item:hover { background: rgba(236, 72, 153, .06); color: #ec4899; }
#nxNav .am-soon { margin-left: auto; flex-shrink: 0; padding: 2px 7px; border-radius: 999px; background: rgba(236, 72, 153, .12); color: #ec4899; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
#nxNav .am-avatar > span:not(.am-soon) { white-space: nowrap; }
/* Movie Request — amber film-reel accent */
#nxNav .am-movierequest { color: #f59e0b; }
#nxNav .am-movierequest svg { opacity: 1; }
#nxNav .am-movierequest:hover { background: rgba(245, 158, 11, .1); color: #f59e0b; }

/* Mobile menu — Go Premium highlighted row (gold text/icon + subtle frame;
   a discrete emphasis, not a banner). Desktop menu untouched. */
#nxNav .mm-row.mm-premium {
  border: 1px solid rgba(242, 171, 49, .38);
  background: rgba(242, 171, 49, .06);
  color: #f2ab31;
  margin: 4px 0 10px;
}
#nxNav .mm-row.mm-premium .icon {
  background: rgba(242, 171, 49, .14);
  color: #f2ab31;
}
#nxNav .mm-row.mm-premium .chev { color: rgba(242, 171, 49, .75); }
#nxNav .mm-row.mm-premium:hover,
#nxNav .mm-row.mm-premium:active {
  background: rgba(242, 171, 49, .12);
  border-color: rgba(242, 171, 49, .55);
}

/* Lenguaje row with inline EN/ES toggle (reuses am-lang-btn wiring) */
#nxNav .mm-row.mm-lang { cursor: default; }
#nxNav .mm-lang-toggle { display: flex; gap: 6px; margin-left: auto; }
#nxNav .mm-lang .am-lang-btn {
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05); color: #c8c8d2; font-family: inherit;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s ease;
}
#nxNav .mm-lang .am-lang-btn:hover { border-color: rgba(56,189,248,.5); color: #fff; }
#nxNav .mm-lang .am-lang-btn.active {
  background: rgba(56,189,248,.14); border-color: rgba(56,189,248,.55); color: #38bdf8;
}

/* ── Go Premium modal — compact mobile layout (same pattern as the My
   Plans mobile compression: title left + price pill right, tight features).
   #nxNav-prefixed so it wins over the modal-specific overrides above. ── */
@media (max-width: 640px) {
  #nxNav .nx-premium-dialog { padding: 14px 12px 12px; }
  #nxNav .nx-premium-dialog h2 { font-size: 1.25rem; margin-bottom: 2px; }
  #nxNav .nx-premium-dialog .nx-premium-sub { margin: 0 0 10px; font-size: .85rem; }
  #nxNav .nx-premium-close { top: 8px; right: 8px; width: 32px; height: 32px; }
  #nxNav .nx-premium-dialog .pt-wrap { padding: 10px 0 0; gap: 10px; }
  #nxNav .nx-premium-dialog .pt-card,
  #nxNav .nx-premium-dialog .pt-card--featured {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    row-gap: 0;
    align-items: start;
    width: 100%;
    min-height: 0;
    padding: 15px 14px 13px;
  }
  #nxNav .nx-premium-dialog .pt-head { grid-column: 1; align-self: center; gap: 10px; }
  #nxNav .nx-premium-dialog .pt-icon { width: 40px; height: 40px; border-radius: 11px; }
  #nxNav .nx-premium-dialog .pt-icon svg { width: 19px; height: 19px; }
  #nxNav .nx-premium-dialog .pt-name { font-size: 16.5px; }
  #nxNav .nx-premium-dialog .pt-tag { font-size: 11px; }
  #nxNav .nx-premium-dialog .pt-price {
    grid-column: 2; align-self: center;
    margin-top: 0; flex-direction: column; align-items: flex-end; gap: 1px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px; padding: 7px 12px 8px;
  }
  #nxNav .nx-premium-dialog .pt-price .pt-orig { align-self: flex-end; }
  #nxNav .nx-premium-dialog .pt-amount { font-size: 24px; line-height: 1.05; }
  #nxNav .nx-premium-dialog .pt-period { font-size: 11px; }
  #nxNav .nx-premium-dialog .pt-divider { margin: 12px 0 10px; grid-column: 1 / -1; }
  #nxNav .nx-premium-dialog .pt-features { grid-column: 1 / -1; gap: 8px; margin-bottom: 13px; flex: 0; }
  #nxNav .nx-premium-dialog .pt-features li { gap: 9px; font-size: 13px; }
  #nxNav .nx-premium-dialog .pt-features svg { width: 15px; height: 15px; margin-top: 1px; }
  #nxNav .nx-premium-dialog .pt-btn { padding: 11px 16px; font-size: 14px; grid-column: 1 / -1; }
  /* Ambassador card keeps its simple column (no price pill) */
  #nxNav .nx-premium-dialog .pt-card--ambassador { display: flex; flex-direction: column; }
  #nxNav .nx-premium-dialog .pt-card--ambassador .pt-divider { margin: 10px 0 4px; }
  #nxNav .nx-premium-dialog .pt-card--ambassador .pt-amb-msg { margin: 8px 0 12px; display: block; }
}

/* Desktop: center the ambassador card under the middle column (Premium) —
   the 3-col pricing grid leaves the 4th card at row 2 / col 1 (left). */
@media (min-width: 641px) {
  #nxNav .nx-premium-dialog .pt-card--ambassador { grid-column: 2; }
}

/* ── "Report a problem" — deliberately discreet: muted small text, no icon,
   no accent color. Last row of BOTH menus (desktop avatar menu + mobile
   drawer). ── */
#nxNav .am-item.am-bugreport { color: #6f6f7b; font-size: 12.5px; font-weight: 500; }
#nxNav .am-item.am-bugreport:hover { color: #9a9aa6; background: rgba(255,255,255,.04); }
#nxNav .mm-row.bugreport { color: #6f6f7b; font-size: 12.5px; font-weight: 500; opacity: .85; }
#nxNav .mm-row.bugreport:hover { color: #9a9aa6; background: rgba(255,255,255,.04); }

/* Bug report mini-modal (shared by both menu triggers) */
.bug-modal-overlay{position:fixed;inset:0;z-index:10002;display:flex;align-items:center;
 justify-content:center;padding:16px;background:rgba(2,2,6,.74);opacity:0;transition:opacity .2s ease}
.bug-modal-overlay.on{opacity:1}
.bug-modal{position:relative;width:100%;max-width:420px;background:linear-gradient(180deg,#0d0d13,#090910);
 border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:22px 20px 18px;
 font-family:'Poppins',system-ui,sans-serif;color:#fff;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.bug-modal h3{margin:0 0 16px;font-size:16px;font-weight:700}
.bug-modal label{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;
 text-transform:uppercase;color:#9a9aa6;margin:12px 0 6px}
.bug-modal select,.bug-modal textarea,.bug-modal input[type=file]{width:100%;box-sizing:border-box;
 background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:10px;
 color:#fff;font:inherit;font-size:13.5px;padding:9px 12px;outline:none}
.bug-modal select:focus,.bug-modal textarea:focus,.bug-modal input[type=file]:focus{border-color:rgba(0,240,214,.5)}
.bug-modal textarea{resize:vertical;font-family:inherit;font-size:13.5px}
.bug-modal input[type=file]{color:#9a9aa6;font-size:12.5px;cursor:pointer}
.bug-err{color:#ff6b6b;font-size:12.5px;margin:10px 0 0}
.bug-submit{margin-top:16px;width:100%;padding:12px 16px;border:none;border-radius:11px;
 background:linear-gradient(90deg,#00f7c6,#00d8f2);color:#03333a;font-family:inherit;
 font-size:14px;font-weight:700;cursor:pointer}
.bug-submit:disabled{opacity:.6;cursor:default}
.bug-close{position:absolute;top:8px;right:10px;width:30px;height:30px;border:none;
 background:rgba(255,255,255,.06);color:#c9c9d4;border-radius:50%;font-size:17px;cursor:pointer;line-height:1}
.bug-close:hover{background:rgba(255,255,255,.12)}
/* Legal-text variant (franchise info notice): long text needs internal
   scroll on small screens; paragraphs only — no headings. */
.bug-modal.legal-text{max-height:min(76dvh,640px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.bug-modal.legal-text p{margin:0 0 12px;font-size:13px;line-height:1.6;color:#d7d7e0}
.bug-modal.legal-text p:last-child{margin-bottom:2px}
.bug-ok{text-align:center;padding:14px 2px 6px}
.bug-ok p{color:#fff;font-size:14px;line-height:1.55;margin:10px 0 18px}

/* Native select dropdown list: without an explicit dark option scheme the
   desktop popup renders white bg + inherited white text (unreadable).
   Mobile is unaffected — same pattern as admin panel .adm-field option. */
.bug-modal { color-scheme: dark; }
.bug-modal option { background: #15151f; color: #e8e8f2; }

/* ── Cross-page persistence of the floating dock (View Transitions) ──
   Chrome/Edge 126+, Safari 18+: same-origin navigations morph the tagged
   elements, so the dock behaves as the SAME instance moving between
   Homepage and Profile (no disappear/reposition). Progressive enhancement:
   older browsers fall back to the identical static geometry. */
/* @view-transition disabled: cross-document morphs left ghost snapshots of fixed elements */

/* ── Mobile floating quick-access dock (liquid glass pill) ──
   Single source of truth — rendered by partials/pf_dock.html on the
   profile page (owner view) AND the Homepage. Mobile only via CSS.
   Sized ~+5% over the original (buttons 44→47px, svg 22→23px, padding
   8/10→9/12, gap 4→7px) with wider icon spacing. */
.pf-dock{display:none}
@media (max-width:639px){
  /* Dock visible SOLO cuando ya vive bajo <body> (selector hijo directo):
     el primer paint in-content queda oculto por CSS (sin JS, sin flash,
     sin blur-rectangulo) y aparece en su posicion final en el mismo frame
     del re-parent. */
  .pf-dock{display:none}
  body > .pf-dock{display:flex;position:fixed;left:50%;transform:translateX(-50%);
    bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:1200;gap:7px;padding:9px 12px;border-radius:999px;
    background:rgba(16,12,30,.55);border:1px solid rgba(255,255,255,.14);
    backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);
    box-shadow:0 12px 40px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.14);
    /* view-transition-name removed: the morph snapshot kept a ghost blurred dock rectangle on pages without the dock */}
  .pf-dock-btn{width:47px;height:47px;border-radius:50%;display:grid;place-items:center;border:0;
    background:transparent;color:rgba(255,255,255,.92);cursor:pointer;transition:background .15s,transform .15s}
  .pf-dock-btn svg{width:23px;height:23px}
  .pf-dock-btn:active{transform:scale(.92);background:rgba(255,255,255,.1)}
  /* Interior = the same liquid glass as every other dock button (transparent
     over the dock pill, white icon); the cyan/purple fill is gone. The glow
     pseudos are radially masked so the gradient discs only render OUTSIDE
     the button edge — the interior stays clean glass, exactly like the
     rest of the menu. */
  .pf-dock-plus{background:transparent;color:rgba(255,255,255,.92);position:relative}
  /* Animated glow ring — ONLY the + button. Asymmetric "flame" arcs: the
     conic gradient sweeps bright (violet → cyan) then dims out around the
     rest of the circle, and each layer spins with a slight elliptical
     stretch, so the light bulges and trails unevenly around the rim as it
     rotates — flame-like, same tones, same sequence. Radial masks keep the
     interior clean glass; the gradient discs render only OUTSIDE the rim. */
  .pf-dock-plus::before,.pf-dock-plus::after{content:'';position:absolute;border-radius:50%;
    background:conic-gradient(#7c4dff 0deg,#a86bff 40deg,#00e5ff 95deg,rgba(0,229,255,.5) 155deg,rgba(255,47,185,.18) 225deg,rgba(124,77,255,.3) 300deg,#7c4dff 360deg);
    pointer-events:none}
  .pf-dock-plus::before{inset:-2px;filter:blur(1.5px);z-index:-1;animation:pfGlowSpin 4s linear infinite;
    -webkit-mask:radial-gradient(circle,transparent 0 20px,black 22px);
            mask:radial-gradient(circle,transparent 0 20px,black 22px)}
  .pf-dock-plus::after{inset:-4px;filter:blur(8px);opacity:.6;z-index:-1;animation:pfGlowSpinBloom 5s linear infinite;
    -webkit-mask:radial-gradient(circle,transparent 0 21px,black 24px);
            mask:radial-gradient(circle,transparent 0 21px,black 24px)}
  @media (prefers-reduced-motion:reduce){
    .pf-dock-plus::before,.pf-dock-plus::after{animation:none}}
  /* Active section highlight — same liquid-glass vocabulary as the dock
     itself (translucent pill + blur + inner light + drop shadow). Inset
     ring instead of border so the button size never shifts. */
  .pf-dock-btn.is-active{background:rgba(255,255,255,.16);
    backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),inset 0 1px 0 rgba(255,255,255,.28),0 4px 14px rgba(0,0,0,.35)}
}
@media (min-width:640px){.pf-dock{display:none !important}}

/* Upload overlay — same shell proportions as the AIShorts ttUploadModal */
.pf-upl{position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;padding:20px}
.pf-upl[hidden]{display:none}
/* Slightly reduced top/bottom: clears the phone status bar (the X used to
   collide with the iOS battery/wifi area) and keeps a breathing gap below */
@media (max-width:639px){
  /* (las reglas reales van DESPUÉS de .pf-upl-card/iframe — ver bloque "móvil
     pantalla completa" al final de esta sección; aquí no va nada porque la
     regla base, por venir después, pisaría estos overrides) */
}
.pf-upl-card{position:relative;width:min(920px,94vw);height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;
  border-radius:20px;overflow:hidden;background:rgba(18,10,32,.96);border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 80px rgba(0,0,0,.6);
  /* Room at the top so the close button sits in clear space, tappable */
  padding-top:56px;box-sizing:border-box}
.pf-upl-card .cl-info-close{top:10px;right:10px;z-index:5;width:40px;height:40px;font-size:16px;
  background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.25)}
.pf-upl-card iframe{flex:1;width:100%;border:0;background:#0d0d0f}

/* ── móvil pantalla completa (DESPUÉS de las reglas base: la última gana) ──
   La card cubre TODO el viewport — sin radio, sin borde, sin margen lateral
   — y el skin (iframe) es quien manda. La barra de estado y el home indicator
   del teléfono quedan libres vía safe-area insets pintados del MISMO color
   que el skin (#07070d), así no se ve ninguna franja violeta arriba/abajo ni
   huecos laterales. La × propia del contenedor sobra (el skin trae la suya y
   avisa al padre para cerrar) → oculta. */
@media (max-width:639px){
  .pf-upl{padding:0}
  .pf-upl-card{width:100vw;height:100dvh;max-height:none;border-radius:0;border:0;box-shadow:none;
    padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);background:#07070d}
  .pf-upl-card .cl-info-close{display:none}
  .pf-upl-card iframe{border-radius:0}
}

/* Spinning gradient for the + button glow ring. The crisp ring is a
   PERFECT circle (pure rotation — no geometric distortion, exactly like
   the reference); only the outer bloom is stretched elliptically, so the
   flames of light bulge asymmetrically OUTWARD while the circular glass
   ring and interior stay symmetric. */
@keyframes pfGlowSpin {
  0%   { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
@keyframes pfGlowSpinBloom {
  0%   { transform: rotate(0)      scaleX(1.06) scaleY(.95); }
  100% { transform: rotate(360deg) scaleX(1.06) scaleY(.95); }
}

/* ============ CONTEST / NEXA dropdown pills (header, desk) ============
   Same liquid-glass pill + the SAME panel component as the account menu
   (.avatar-menu). Click-to-open via .nav-drop.open (JS in navbar.html);
   one open at a time; close on outside click / Escape / item choice. */
#nxNav .nav-drop { position: relative; display: inline-flex; }
/* hover bridge: keeps :hover alive across the pill→menu gap so the panel
   doesn't flicker shut while the pointer travels down */
#nxNav .nav-drop::after { content: ""; position: absolute; top: 100%; left: 0;
  right: 0; height: 12px; }
#nxNav button.pill { font-family: inherit; }
/* Hover ALSO opens (pointer devices only — touch keeps click/tap). Click
   still pins it open (.open) and the JS enforces one-at-a-time. */
@media (hover: hover) and (pointer: fine) {
  #nxNav .nav-drop:hover .pill-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  #nxNav .nav-drop:hover .pill-chev { transform: rotate(180deg); }
  #nxNav .nav-drop:hover .pill-drop { background: color-mix(in srgb, var(--c) 24%, transparent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--c) 45%, transparent), 0 4px 14px rgba(0, 0, 0, 0.3); }
}
#nxNav .pill-chev { width: 10px; height: 10px; margin-left: 1px; transition: transform .18s ease; }
#nxNav .nav-drop.open .pill-chev { transform: rotate(180deg); }
#nxNav .nav-drop.open .pill-drop { background: color-mix(in srgb, var(--c) 24%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 45%, transparent), 0 4px 14px rgba(0, 0, 0, 0.3); }
/* panel: same look as .avatar-menu, anchored to the pill's left edge */
#nxNav .pill-menu { right: auto; left: 0; top: calc(100% + 10px); min-width: 224px; }
#nxNav .nav-drop.open .pill-menu { opacity: 1; visibility: visible; transform: translateY(0); }
/* Academy (new, coming soon) — academic blue, distinct from its siblings */
#nxNav .am-academy { color: #60a5fa; }
#nxNav .am-academy:hover { background: rgba(96, 165, 250, .1); color: #60a5fa; }

