/* ===========================
   City Lite — Neo-Arcade UI
   =========================== */

:root {
  --color-bg: #111;
  --color-text: #fff;
  --color-bg-input: #000;
  --color-error: #f00;

  /* Neón */
  --color-border: #0ff;
  --color-border-input: #f0f;
  --neon-cyan: #00f7ff;
  --neon-pink: #ff3df0;
  --color-text-nav: #e5faff;

  /* Header */
  --hdr-border: rgba(0, 247, 255, .7);
  --header-h: 70px;

  /* Varios */
  --muted: #666;

  /* Sombras / brillos */
  --text-shadow: 0 0 8px var(--color-border), 0 0 12px var(--color-border);
  --text-shadow-error: 0 0 5px var(--color-bg-input);
  --shadow-input: inset 0 0 8px var(--color-border);
  --shadow-card: 0 0 20px var(--color-border), inset 0 0 10px var(--color-border);
  --shadow-input-focus: inset 0 0 12px var(--color-border-input);
  --shadow-button: 0 0 12px var(--color-border), inset 0 0 8px var(--color-text);
  --shadow-button-hover: 0 0 16px var(--color-border-input), inset 0 0 8px var(--color-bg-input);
  --shadow-flicker-1: 0 0 20px var(--color-border), inset 0 0 10px var(--color-border);
  --shadow-flicker-2: 0 0 10px var(--color-border), inset 0 0 4px var(--color-border);
  --shadow-brand: 0 0 8px var(--neon-cyan), 0 0 14px var(--neon-cyan);
  --shadow-nav-hover: 0 0 10px rgba(255, 61, 240, .35), inset 0 0 8px rgba(255, 61, 240, .25);
  --shadow-nav-active: 0 0 12px rgba(0, 247, 255, .35), inset 0 0 8px rgba(0, 247, 255, .2);

  --font-heading: "Press Start 2P", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------- Base ---------------- */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f0f, #1c1c1c);
  color: var(--color-text);
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
}

/* Enlaces genéricos fuera del header */
a {
  color: #7dd3fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Contenedor genérico */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Por defecto, las vistas usan centrado en main */
main.container {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 32px 12px;
}

/* ======== Header ======== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .35));
  border-bottom: 2px solid var(--hdr-border);
  box-shadow: 0 0 18px rgba(0, 247, 255, .15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-header::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03), rgba(255, 255, 255, .03) 1px, transparent 2px, transparent 3px);
  mix-blend-mode: soft-light;
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Marca pixel-arcade */
.brand {
  letter-spacing: 1px;
  font-weight: 800;
  font-size: 22px;
  color: var(--neon-cyan);
  text-shadow: var(--shadow-brand);
  margin-right: auto;
  transform: translateY(-1px);
}

/* Nav cápsula */
.nav a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 10px;
  font-size: 12px;
  color: var(--color-text-nav);
  border: 2px solid rgba(0, 247, 255, .35);
  border-radius: 9999px;
  text-decoration: none;
  transition: .18s ease;
}

.nav a:hover {
  border-color: var(--neon-pink);
  color: #fff;
  box-shadow: var(--shadow-nav-hover);
}

.nav a.active {
  background: rgba(0, 247, 255, .12);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-nav-active);
}

/* Botones */
.btn {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.btn.btn-ghost {
  background: rgba(0, 0, 0, .35);
  color: #e5faff;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 247, 255, .25), inset 0 0 6px rgba(255, 255, 255, .1);
  transition: .2s ease;
}

.btn.btn-ghost:hover {
  background: rgba(255, 61, 240, .15);
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(255, 61, 240, .35), inset 0 0 8px rgba(0, 0, 0, .35);
}

/* Menú usuario */
.user-menu {
  position: relative;
  margin-left: 28px;
  padding-left: 20px;
  border-left: 2px solid rgba(0, 247, 255, .25);
  display: flex;
  align-items: center;
}

.user-menu.is-guest {
  border-left: none;
  margin-left: 10px;
  padding-left: 0;
}

.user-menu .avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, .35);
  border: 2px solid rgba(0, 247, 255, .35);
  border-radius: 9999px;
  padding: 4px 10px;
  line-height: 1;
  cursor: pointer;
  color: #e5faff;
  box-shadow: 0 0 8px rgba(0, 247, 255, .15);
}

.avatar-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 247, 255, .35);
}

.avatar-name {
  font-weight: 600;
  font-size: 12px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-caret {
  opacity: .6;
  font-size: 16px;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  background: #0b0d11;
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 16px rgba(0, 247, 255, .25);
  padding: 8px 0;
  display: none;
  z-index: 1000;
  font-family: var(--font-heading);
  font-size: 12px;
  color: #e5faff;
}

.user-menu[data-open="true"] .user-dropdown {
  display: block;
}

.ud-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 6px;
}

.ud-header .avatar-img {
  width: 34px;
  height: 34px;
}

.ud-meta small {
  color: var(--muted);
}

.ud-list {
  padding: 6px 8px 8px;
}

.ud-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 8px;
  color: #e5faff;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}

.ud-item:hover {
  background: rgba(0, 247, 255, .08);
  text-decoration: none;
}

.ud-item.danger {
  color: #ff6b6b;
}

.ud-item.danger:hover {
  background: rgba(255, 107, 107, .15);
}

/* ===== Badges de recursos (header) ===== */
.qclaim {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* El chip completo es clicable (DIV con role=button) */
.qc-item {
  /* neutraliza cualquier herencia rara */
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 2px solid rgba(0, 247, 255, .35);
  background: rgba(0, 8, 14, .55);
  color: #e5faff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 247, 255, .25), inset 0 0 6px rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.qc-item:hover {
  background: rgba(255, 61, 240, .12);
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(255, 61, 240, .35), inset 0 0 6px rgba(0, 0, 0, .25);
  transform: translateY(-1px);
}

.qc-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 247, 255, .35), 0 0 18px rgba(0, 247, 255, .35);
}

.qc-item[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
  transform: none;
  filter: grayscale(.2);
}

.qc-item img {
  width: 20px;
  height: 20px;
  display: block;
}

.qc-item .gain {
  font-weight: 700;
  font-size: 16px;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 247, 255, .8);
  min-width: 2.2em;
  text-align: center;
}

/* pulso suave cuando hay recursos listos */
.qc-item.is-ready {
  animation: qcPulse 1.6s ease-in-out infinite;
}

@keyframes qcPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 247, 255, .25), inset 0 0 6px rgba(255, 255, 255, .05);
  }

  70% {
    box-shadow: 0 0 18px 4px rgba(0, 247, 255, .32), inset 0 0 6px rgba(255, 255, 255, .05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 247, 255, .0), inset 0 0 6px rgba(255, 255, 255, .05);
  }
}

/* ===== capa y pop "+X" ===== */
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.float-pop {
  position: absolute;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 0) scale(.9);
  animation: floatUp .9s ease-out forwards;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 0 10px rgba(0, 247, 255, .35);
  font-size: 14px;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(.9);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -48px) scale(1.12);
  }
}

.float-food {
  color: #2ee66b;
}

.float-wood {
  color: #f59e0b;
}

.float-stone {
  color: #93c5fd;
}

.float-gold {
  color: #facc15;
}

.float-money {
  color: #00f7ff;
}


/* ---------------- Tarjeta Login (form) ---------------- */

.card {
  width: 350px;
  background: var(--color-bg);
  border: 4px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  text-align: center;
  padding: 30px;
  animation: flicker 1.5s infinite alternate;
}

.card h2 {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--color-border);
  text-shadow: var(--text-shadow);
}

label {
  display: block;
  margin-bottom: 15px;
  font-size: 10px;
}

input[type="email"],
input[type="password"] {
  font-family: inherit;
  font-size: 10px;
  width: 100%;
  padding: 10px;
  background: var(--color-bg-input);
  border: 2px solid var(--color-border);
  color: var(--color-border);
  border-radius: 6px;
  box-shadow: var(--shadow-input);
  outline: none;
  transition: all .2s;
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--color-border-input);
  box-shadow: var(--shadow-input-focus);
  color: var(--color-border-input);
}

button {
  font-family: inherit;
  font-size: 12px;
  background: var(--color-border);
  color: var(--color-bg-input);
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  text-transform: uppercase;
  box-shadow: var(--shadow-button);
  transition: all .3s;
}

button:hover {
  background: var(--color-border-input);
  box-shadow: var(--shadow-button-hover);
  color: var(--color-text);
}

.error {
  background: var(--color-error);
  color: var(--color-text);
  font-size: 10px;
  padding: 8px;
  margin-bottom: 15px;
  border: 2px solid var(--color-text);
  text-shadow: var(--text-shadow-error);
}

@keyframes flicker {
  0% {
    box-shadow: var(--shadow-flicker-1);
  }

  100% {
    box-shadow: var(--shadow-flicker-2);
  }
}

/* ---------------- Responsive base ---------------- */

.legacy-user-block {
  display: none !important;
}

@media (max-width:900px) {
  .avatar-name {
    display: none;
  }
}

@media (max-width:820px) {
  :root {
    --header-h: 64px;
  }

  .site-header .wrap {
    gap: 10px;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 18px;
  }
}

/* =======================
   HOME / LANDING (final)
   ======================= */

/* Cuando el <main> contiene el hero, anulamos su layout y anchura máxima */
main.container:has(.home-hero) {
  display: block;
  /* quita grid/centrado del main */
  place-items: initial;
  min-height: 0;
  padding: 0;
}

.container:has(.home-hero) {
  max-width: none;
  /* <main> a todo el ancho */
  padding: 0;
}

/* Hero a pantalla completa (restando header + borde) */
.home-hero {
  position: relative;
  height: calc(100svh - var(--header-h) - 2px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Ya no necesitamos hack de full-bleed; mantenlo por si lo usabas en HTML */
.full-bleed {
  width: 100%;
}

/* Fondo base + variables luna */
.bg-skyline {
  background:
    radial-gradient(1200px 600px at 50% 120%, rgba(0, 247, 255, .08), transparent 60%),
    radial-gradient(900px 500px at 12% 18%, rgba(255, 61, 240, .06), transparent 60%),
    linear-gradient(180deg, #0e0f12 0%, #0b0d11 100%);
  --moon-r: clamp(56px, 8vw, 120px);
  --moon-x: 86%;
  --moon-y: 18%;
}

/* Estrellas + Luna detrás de todo */
.bg-skyline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle var(--moon-r) at var(--moon-x) var(--moon-y), rgba(255, 255, 255, .95) 0 60%, rgba(255, 255, 255, .9) 61% 75%, rgba(255, 255, 255, 0) 76%),
    radial-gradient(circle calc(var(--moon-r)*1.2) at calc(var(--moon-x) - 2%) calc(var(--moon-y) + 3%), rgba(0, 0, 0, .18), transparent 60%),

    radial-gradient(circle calc(var(--moon-r)*.16) at calc(var(--moon-x) - 4%) calc(var(--moon-y) - 3%), rgba(0, 0, 0, .25) 40%, transparent 41%),
    radial-gradient(circle calc(var(--moon-r)*.20) at calc(var(--moon-x) - 1%) calc(var(--moon-y) + 6%), rgba(0, 0, 0, .22) 38%, transparent 39%),
    radial-gradient(circle calc(var(--moon-r)*.12) at calc(var(--moon-x) + 6%) calc(var(--moon-y) + 1%), rgba(0, 0, 0, .24) 42%, transparent 43%),
    radial-gradient(circle calc(var(--moon-r)*.10) at calc(var(--moon-x) + 2%) calc(var(--moon-y) - 8%), rgba(0, 0, 0, .20) 40%, transparent 41%),
    radial-gradient(circle calc(var(--moon-r)*.08) at calc(var(--moon-x) - 8%) calc(var(--moon-y) + 2%), rgba(0, 0, 0, .22) 44%, transparent 45%),

    radial-gradient(1px 1px at 12% 18%, #fff 55%, transparent 56%),
    radial-gradient(1.2px 1.2px at 28% 76%, #fff 55%, transparent 56%),
    radial-gradient(1px 1px at 46% 28%, #fff 55%, transparent 56%),
    radial-gradient(1.4px 1.4px at 62% 64%, #fff 55%, transparent 56%),
    radial-gradient(1px 1px at 80% 22%, #fff 55%, transparent 56%),
    radial-gradient(1px 1px at 90% 72%, #fff 55%, transparent 56%);
  opacity: .82;
  animation: starTwinkle 6s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Skyline delante del cielo */
.bg-skyline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38vh;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%23060d12'/%3E%3Cstop offset='1' stop-color='%230b0d11'/%3E%3C/linearGradient%3E%3Cfilter id='glow' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='5' result='b'/%3E%3CfeMerge%3E%3CfeMergeNode in='b'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='url(%23g)' stroke='%2300f7ff' stroke-opacity='.18' filter='url(%23glow)'%3E%3Crect x='20' y='220' width='80' height='180'/%3E%3Crect x='120' y='240' width='60' height='160'/%3E%3Crect x='200' y='180' width='70' height='220'/%3E%3Crect x='290' y='260' width='90' height='140'/%3E%3Crect x='400' y='200' width='70' height='200'/%3E%3Crect x='480' y='150' width='100' height='250'/%3E%3Crect x='600' y='230' width='80' height='170'/%3E%3Crect x='700' y='210' width='70' height='190'/%3E%3Crect x='780' y='260' width='110' height='140'/%3E%3Crect x='910' y='190' width='80' height='210'/%3E%3Crect x='1000' y='230' width='70' height='170'/%3E%3Crect x='1080' y='160' width='110' height='240'/%3E%3Crect x='1210' y='240' width='80' height='160'/%3E%3Crect x='1300' y='220' width='70' height='180'/%3E%3Crect x='1380' y='260' width='100' height='140'/%3E%3C/g%3E%3Crect width='1600' height='12' y='388' fill='%2300f7ff' opacity='.3'/%3E%3C/svg%3E") bottom center / cover no-repeat;
  box-shadow: 0 -8px 40px rgba(0, 247, 255, .15) inset;
  z-index: 1;
  pointer-events: none;
}

/* Parpadeo del cielo */
@keyframes starTwinkle {

  0%,
  100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

/* Tarjeta centrada delante */
.home-hero>* {
  position: relative;
  z-index: 2;
}

.card-home {
  width: 420px;
  padding: 28px 26px 30px;
  border-width: 4px;
  border-radius: 14px;
  text-align: center;
  animation: flicker 1.6s infinite alternate;
  position: relative;
  isolation: isolate;
}

.card-home::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background:
    radial-gradient(60% 100% at 50% -10%, rgba(0, 247, 255, .6), transparent 65%),
    radial-gradient(60% 100% at 50% 120%, rgba(0, 247, 255, .4), transparent 70%);
  filter: blur(12px);
  opacity: .7;
  z-index: -1;
}

.card-home h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan), 0 0 14px var(--neon-cyan);
  letter-spacing: .5px;
  animation: hdrGlitch 3.2s ease-in-out infinite;
}

@keyframes hdrGlitch {

  0%,
  92%,
  100% {
    transform: none;
    text-shadow: 0 0 8px var(--neon-cyan), 0 0 14px var(--neon-cyan);
  }

  93% {
    transform: translateX(-1px);
    text-shadow: -2px 0 var(--neon-pink), 2px 0 #00d0ff;
  }

  96% {
    transform: translateX(1px);
    text-shadow: -2px 0 #00d0ff, 2px 0 var(--neon-pink);
  }

  98% {
    transform: none;
  }
}

.card-home p {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}

.btn-cta {
  display: inline-block;
  padding: 10px 14px;
  font-size: 12px;
  color: #000;
  background: var(--neon-cyan);
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 247, 255, .65), inset 0 0 8px rgba(255, 255, 255, .6);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn-cta:hover {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 61, 240, .7), inset 0 0 8px rgba(0, 0, 0, .35);
  transform: translateY(-1px);
}

/* Responsive Home */
@media (max-width:520px) {
  .card-home {
    width: 92vw;
    padding: 24px 18px;
  }

  .card-home h2 {
    font-size: 16px;
  }

  .card-home p {
    font-size: 11px;
  }
}

/* ====== Modificador de layout fluido ====== */
/* Quita límites y centrado del main SOLO cuando lo pidas explícitamente */
.container.container--fluid {
  max-width: none;
  /* sin límite de ancho */
  padding: 0;
  /* sin padding lateral */
}

main.container.container--fluid {
  display: block;
  /* anula el grid centrado del main por defecto */
  min-height: calc(100svh - var(--header-h));
  place-items: initial;
}

/* (Opcional) Si alguna sección necesita romper el ancho de su padre
   y NO quieres tocar PHP, usa .full-bleed en esa sección */
.full-bleed {
  position: relative;
  width: 100dvw;
  left: 50%;
  margin-left: -50dvw;
  max-width: 100dvw;
}

html {
  overflow-x: clip;
}

/* ----- User dropdown: look & feel ----- */
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  background: rgba(7, 12, 16, .95);
  border: 2px solid var(--neon-cyan);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 16px rgba(0, 247, 255, .25);
  padding: 8px 0;
  display: none;
  z-index: 1000;
  font-family: var(--font-heading);
  font-size: 12px;
  color: #e5faff;
  backdrop-filter: blur(6px);
}

.user-menu[data-open="true"] .user-dropdown {
  display: block;
}

.user-menu[data-open="true"] .avatar-caret {
  transform: rotate(180deg);
}

.ud-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}

.ud-header .avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.ud-meta small {
  color: #9fb8c7;
  opacity: .85;
}

.ud-sep {
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, .35), transparent);
  border: 0;
}

.ud-list {
  padding: 6px 8px 8px;
}

.ud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  color: #e5faff;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .06s ease;
  border: 1px solid transparent;
}

.ud-item:hover {
  background: rgba(0, 247, 255, .08);
  border-color: rgba(0, 247, 255, .25);
  text-decoration: none;
}

.ud-item:active {
  transform: translateY(1px);
}

/* Activo (página actual) */
.ud-item[aria-current="page"],
.ud-item.active {
  background: rgba(0, 247, 255, .12);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: inset 0 0 12px rgba(0, 247, 255, .18);
  cursor: default;
}

/* Botón de logout: neutraliza estilos globales de <button> */
.user-dropdown form .ud-item {
  background: transparent !important;
  border: none;
  box-shadow: none;
  text-transform: none;
  color: #e5faff;
}

.user-dropdown form .ud-item.danger {
  color: #ff6b6b;
}

.user-dropdown form .ud-item.danger:hover {
  background: rgba(255, 107, 107, .12);
  border-color: rgba(255, 107, 107, .35);
  color: #fff;
}

.avatar-caret {
  opacity: .6;
  font-size: 16px;
  transition: transform .18s ease;
}

/* Header: cantidades (no clic) */
.site-header .qclaim .qc-item {
  cursor: default;
}

.site-header .qclaim .qc-item:hover {
  /* neutraliza el hover “botón” */
  transform: none;
  background: rgba(0, 8, 14, .55);
  border-color: rgba(0, 247, 255, .35);
  box-shadow: 0 0 12px rgba(0, 247, 255, .25), inset 0 0 6px rgba(255, 255, 255, .05);
}

/* Flash cuando sube la cantidad (lo usamos en el header) */
@keyframes qtyFlash {
  0% {
    transform: scale(1);
    text-shadow: 0 0 6px rgba(0, 247, 255, .8);
  }

  50% {
    transform: scale(1.10);
    text-shadow: 0 0 18px rgba(0, 247, 255, 1);
  }

  100% {
    transform: scale(1);
  }
}

.glow-pulse {
  animation: qtyFlash .45s ease-out;
}

/* ===== capa y pop "+X" ===== */
/* ... (tus reglas existentes) ... */

.float-pop {
  /* ya lo tienes */
  position: absolute;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 0) scale(.9);
  animation: floatUp .9s ease-out forwards;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 0 10px rgba(0, 247, 255, .35);
  font-size: 14px;
}

/* NUEVO: versión descendente para descuentos */
.float-pop.float-down {
  animation: floatDown .9s ease-out forwards;
}

@keyframes floatDown {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(.9);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 48px) scale(1.12);
  }
}

/* (colores por recurso ya existen: .float-food, .float-wood, .float-stone, .float-gold, .float-money) */