/* Module: user-panel */
/* ======================================================
 * User Panel · Beat4Pass · Glass Mode
 * Mobile first · Solo afecta a .eh-user-panel-*
 * ==================================================== */

/* Shell general */
.eh-user-panel-shell {
  --up-bg: #0a0217;
  --up-bg-soft: #0b0217;
  --up-card: rgba(15, 23, 42, 0.82);
  --up-card-strong: rgba(15, 23, 42, 0.95);
  --up-glass-border: rgba(148, 163, 184, 0.35);
  --up-glass-border-strong: rgba(148, 163, 184, 0.65);
  --up-primary: #6366f1;
  --up-primary-soft: #818cf8;
  --up-primary-alt: #8b5cf6;
  --up-text-main: #e5e7eb;
  --up-text-soft: #9ca3af;
  --up-text-muted: #6b7280;
  --up-danger: #f97373;
  --up-radius-lg: 22px;
  --up-radius-full: 999px;
  --up-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
  --up-shadow-strong: 0 24px 60px rgba(15, 23, 42, 1);
  --up-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  background: radial-gradient(circle at top, #082b5f 0, #080808 70%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", Roboto, sans-serif;
}

/* Contenedor principal tipo app */
.eh-user-panel {
  position: relative;
  width: 100%;
  max-width: 480px;         /* mobile first */
  margin: 0 auto;
  min-height: 100vh;
  color: var(--up-text-main);
  padding-bottom: 82px;     /* espacio para la bottom-nav */
  box-sizing: border-box;
}

/* ==============================
   LAYOUT INTERIOR (GLASS)
   ============================== */

.eh-up.shell {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* -------- Header simple (nombre + email + engranaje) -------- */

.eh-up.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.88)
    ),
    radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.4),
      transparent 60%
    );
  border: 1px solid var(--up-glass-border-strong);
  box-shadow: var(--up-shadow-soft);
}

.eh-up.username {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

.eh-up.email {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--up-text-soft);
}

.eh-up.settings-btn {
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      circle at 30% 0%,
      rgba(148, 163, 184, 0.4),
      transparent 65%
    ),
    rgba(15, 23, 42, 0.95);
  color: var(--up-text-main);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.85);
  cursor: pointer;
  transition: transform var(--up-transition),
    box-shadow var(--up-transition), background var(--up-transition);
}

.eh-up.settings-btn i {
  font-size: 1rem;
}

.eh-up.settings-btn:hover {
  transform: translateY(-1px);
  background: radial-gradient(
      circle at 30% 0%,
      rgba(129, 140, 248, 0.6),
      transparent 65%
    ),
    rgba(15, 23, 42, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 1);
}

/* -------- Tarjeta "Próxima entrada" -------- */

.eh-up.card {
  border-radius: var(--up-radius-lg);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.2),
      transparent 60%
    ),
    var(--up-card);
  border: 1px solid var(--up-glass-border);
  box-shadow: var(--up-shadow-soft);
}

.eh-up-card--next {
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--up-transition),
    box-shadow var(--up-transition), border-color var(--up-transition);
}

.eh-up-card--next:hover {
  transform: translateY(-2px);
  box-shadow: var(--up-shadow-strong);
  border-color: var(--up-glass-border-strong);
}

/* Thumbnail mini (modo compacto) */
.eh-up.event-thumb {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
}

.eh-up.event-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eh-up.event-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.45;
}

.eh-up.event-info {
  padding: 10px 12px 8px;
}

.eh-up.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--up-primary-soft);
}

.eh-up.label i {
  font-size: 0.9rem;
}

.eh-up.event-title {
  margin: 4px 0 3px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

.eh-up.event-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--up-text-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.eh-up.event-meta i {
  font-size: 0.9rem;
}

.eh-up.meta-dot {
  margin: 0 2px;
  opacity: 0.5;
}

.eh-up.expand-icon {
  padding: 4px 10px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eh-up.expand-icon i {
  font-size: 1rem;
  color: var(--up-text-soft);
  transition: transform var(--up-transition), color var(--up-transition);
}

.eh-up-card--next.is-open .eh-up.expand-icon i {
  transform: rotate(180deg);
  color: var(--up-primary-soft);
}

/* -------- Panel expandible QR + acciones -------- */

.eh-up.ticket-panel {
  margin-top: 6px;
  border-radius: var(--up-radius-lg);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.2),
      transparent 55%
    ),
    var(--up-card-strong);
  border: 1px solid var(--up-glass-border-strong);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: max-height 0.4s var(--up-transition),
    opacity 0.35s var(--up-transition), transform 0.35s var(--up-transition),
    margin-top 0.35s var(--up-transition);
}

.eh-up.ticket-panel.is-open {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 10px;
}

.eh-up.ticket-panel-inner {
  padding: 12px 14px 14px;
}

/* QR card */

.eh-up.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0.75rem;
}

.eh-up.qr-inner {
  position: relative;
  width: 220px;
  height: 220px;
  padding: 18px;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(120, 119, 255, 0.45), rgba(13, 16, 34, 0.95));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.eh-up.qr-inner img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
}

/* Esquinas “scanner” */
.eh-up.qr-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.eh-up.qr-corner--tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.eh-up.qr-corner--tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.eh-up.qr-corner--bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.eh-up.qr-corner--br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.eh-up.qr-hint {
  margin: 10px 2px 6px;
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eh-up.qr-hint i {
  font-size: 0.9rem;
}

/* Botones de acción (bajo el QR) */

.eh-up.grid-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.eh-up.glass-btn {
  border-radius: 14px;
  border: 1px solid var(--up-glass-border);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(148, 163, 184, 0.26),
      transparent 68%
    ),
    rgba(15, 23, 42, 0.98);
  color: var(--up-text-main);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform var(--up-transition), box-shadow var(--up-transition),
    border-color var(--up-transition), background var(--up-transition);
}

.eh-up.glass-btn i {
  font-size: 0.95rem;
}

.eh-up.glass-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.95);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.45),
      transparent 68%
    ),
    rgba(15, 23, 42, 1);
}

/* =========================
   CONTENIDO SECCIONES
   ========================= */

.eh-user-panel__content {
  margin-top: 12px;
  padding-bottom: 8px;
}

.eh-user-panel__sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ocultar secciones no activas */
.eh-user-panel__section {
  display: none;
}

.eh-user-panel__section.is-active {
  display: block;
}

.eh-user-panel__card {
  padding: 12px 12px 14px;
  border-radius: 18px;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(148, 163, 184, 0.26),
      transparent 65%
    ),
    rgba(15, 23, 42, 0.96);
  border: 1px solid var(--up-glass-border-strong);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.95);
}

/* Para shortcodes embebidos */
.eh-user-panel__card--embedded {
  padding: 0;
  overflow: hidden;
}

/* Títulos secciones */
.eh-user-panel__section-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eh-user-panel__section-description {
  margin: 0;
  font-size: 0.8rem;
  color: var(--up-text-soft);
}

/* =========================
   FOOTER / LOGOUT (DESKTOP)
   ========================= */

.eh-user-panel__footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.eh-user-panel__footer--desktop {
  display: none; /* se muestra sólo en desktop */
}

.eh-user-panel__logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: var(--up-text-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--up-transition), border-color var(--up-transition),
    color var(--up-transition), box-shadow var(--up-transition),
    transform var(--up-transition);
}

.eh-user-panel__logout-btn i {
  font-size: 0.9rem;
}

.eh-user-panel__logout-btn:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fee2e2;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

/* =========================================
 * BOTTOM NAV · MOBILE GLASS DOCK
 * ======================================= */

/* margen inferior para que no tape contenido */
.eh-user-panel-shell {
  padding-bottom: 90px;
}

/* Contenedor fijo abajo, centrado */
.eh-user-panel__mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  pointer-events: none; /* solo la barra interior recibe eventos */
}

/* Dock glass */
.eh-user-panel__mobile-nav .eh-user-panel__menu {
  pointer-events: auto;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0% 0%, rgba(129,140,248,0.32), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(56,189,248,0.25), transparent 60%),
    rgba(15,23,42,0.96);
  box-shadow:
    0 18px 45px rgba(15,23,42,0.95),
    0 0 0 1px rgba(148,163,184,0.28);
}

/* Pestañas: icono arriba, texto abajo */
.eh-user-panel__menu-item {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 999px;
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  background: transparent;
  color: rgba(226,232,240,0.9);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s ease-out,
    color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.12s ease-out,
    opacity 0.18s ease-out;
}

.eh-user-panel__menu-item i {
  font-size: 0.9rem;
}

/* texto con ellipsis por si acaso */
.eh-user-panel__menu-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inactivo: chip glass suave */
.eh-user-panel__menu-item:not(.is-active) {
  background: rgba(15,23,42,0.7);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.35);
  opacity: 0.9;
}

.eh-user-panel__menu-item:not(.is-active):hover {
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(191,219,254,0.75),
    0 0 0 1px rgba(15,23,42,0.5);
}

/* Activo: pastilla morada con glow */
.eh-user-panel__menu-item.is-active {
  background: linear-gradient(135deg, #a855ff, #6366f1);
  color: #f9fafb;
  box-shadow:
    0 10px 24px rgba(129,140,248,0.8),
    0 0 0 1px rgba(248,250,252,0.18);
  transform: translateY(-1px);
}

/* Botón logout redondo al lado */
.eh-user-panel__mobile-logout {
  pointer-events: auto;
  margin-left: 8px;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 0% 0%, rgba(248,113,113,0.55), transparent 60%),
    linear-gradient(145deg, #7f1d1d, #b91c1c);
  border: 1px solid rgba(248,113,113,0.7);
  color: #fee2e2;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(15,23,42,0.9),
    0 0 0 1px rgba(15,23,42,1);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.18s ease-out,
    background 0.18s ease-out;
}

.eh-user-panel__mobile-logout i {
  font-size: 1rem;
}

.eh-user-panel__mobile-logout:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px rgba(0,0,0,1),
    0 0 0 1px rgba(254,226,226,0.9);
}

/* Móviles muy pequeños: sólo iconos, sin texto */
@media (max-width: 360px) {
  .eh-user-panel__menu-title {
    display: none;
  }

  .eh-user-panel__menu-item {
    padding: 7px 4px;
  }
}

/* =========================
   HERO STACK (header + card + QR unificados)
   ========================= */

.eh-up.hero-stack {
  margin-bottom: 16px;
  border-radius: 22px;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(148, 163, 184, 0.22),
      transparent 55%
    ),
    rgba(10, 16, 36, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

/* anulamos bordes sueltos de las piezas internas */
.eh-up.hero-stack__header,
.eh-up.hero-stack__card,
.eh-up.hero-stack__panel {
  border-radius: 0;
  border: none;
  background: transparent;
}

/* header pegado arriba */
.eh-up.hero-stack__header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.35);
}

/* tarjeta evento, centrada y sin borde externo */
.eh-up.hero-stack__card {
  padding: 10px 12px 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.eh-up.hero-stack__card .eh-up.event-thumb {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

/* panel QR como parte inferior */
.eh-up.hero-stack__panel {
  border-top: 1px solid rgba(30, 64, 175, 0.35);
  padding: 10px 14px 14px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (min-width: 600px) {
  .eh-up.shell {
    padding: 18px 18px 20px;
    gap: 16px;
  }
}

/* Desktop: panel más ancho y sin recortes */
@media (min-width: 992px) {
  .eh-user-panel-shell {
    padding: 24px 16px;
  }

  .eh-user-panel {
    max-width: 1080px;
    border-radius: 32px;
    overflow: visible;   /* que no corte Mis Entradas ni el QR */
    box-shadow: var(--up-shadow-strong);
    padding-bottom: 0;
  }

  .eh-up.shell {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .eh-user-panel__footer--desktop {
    display: flex;
  }

  /* En desktop también queremos ver la barra de secciones */
  .eh-user-panel__mobile-nav {
    display: flex !important;
    padding-bottom: 22px;
  }
}

/* =========================
 * LOGIN EMBEBIDO (WooCommerce)
 * ========================= */

.eh-user-panel__card--embedded {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(148, 163, 184, 0.26),
      transparent 65%
    ),
    rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

/* Quitamos estilo “caja” de Woo y lo adaptamos al panel */
.eh-user-panel__card--embedded form.login,
.eh-user-panel__card--embedded .woocommerce-form-login {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 14px 16px 18px;
  box-shadow: none;
}

/* Filas del formulario en columna y a 100% */
.eh-user-panel__card--embedded form.login .form-row {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  float: none;
}

/* Label */
.eh-user-panel__card--embedded form.login label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5f5;
  margin-bottom: 4px;
}

/* Inputs */
.eh-user-panel__card--embedded form.login input.input-text {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.98);
  padding: 10px 12px;
  font-size: 0.86rem;
  color: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.eh-user-panel__card--embedded form.login input.input-text:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.7),
    0 0 0 6px rgba(129, 140, 248, 0.22);
}

/* Fila recordar + botón */
.eh-user-panel__card--embedded .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 2px 0 10px;
}

.eh-user-panel__card--embedded .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  accent-color: #818cf8;
}

/* Botón acceder glass/pill */
.eh-user-panel__card--embedded .woocommerce-form-login__submit,
.eh-user-panel__card--embedded button.woocommerce-button {
  width: 100%;
  margin-top: 6px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.9);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #a855ff, #6366f1);
  color: #f9fafb;
  cursor: pointer;
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 1),
    0 0 0 1px rgba(15, 23, 42, 1);
  transition: transform 0.15s ease-out, box-shadow 0.18s ease-out,
    background 0.18s ease-out;
}

.eh-user-panel__card--embedded .woocommerce-form-login__submit:hover,
.eh-user-panel__card--embedded button.woocommerce-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 44px rgba(15, 23, 42, 1),
    0 0 0 1px rgba(248, 250, 252, 0.25);
}

/* Enlace “¿Olvidaste la contraseña?” */
.eh-user-panel__card--embedded .woocommerce-LostPassword {
  margin-top: 10px;
  text-align: center;
}

.eh-user-panel__card--embedded .woocommerce-LostPassword a {
  font-size: 0.8rem;
  color: #a5b4fc;
  text-decoration: none;
}

.eh-user-panel__card--embedded .woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

/* Ajuste de mensajes de error de Woo dentro de la card */
.eh-user-panel__card--embedded .woocommerce-error,
.eh-user-panel__card--embedded .woocommerce-message {
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.7);
  background: rgba(127, 29, 29, 0.95);
  color: #fee2e2;
  font-size: 0.78rem;
}

/* =========================
   HIDE ADMIN BAR + HEADER THEME en user panel
   ========================= */

@media screen and (max-width: 600px) {
  #wpadminbar {
    display: none !important;
  }
  body.logged-in {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

/* Fondo global oscuro cuando está el User Panel */
body:has(.eh-user-panel-shell) {
  background: radial-gradient(circle at top, #020617 0, #000 70%) !important;
  margin-top: 0 !important;
}

/* Ocultar admin bar y headers típicos cuando estamos en el panel */
body:has(.eh-user-panel-shell) #wpadminbar {
  display: none !important;
}

body:has(.eh-user-panel-shell) .site-header,
body:has(.eh-user-panel-shell) header[role="banner"],
body:has(.eh-user-panel-shell) .elementor-location-header {
  display: none !important;
}

/* =========================
   DESKTOP · Mis Entradas + Wallet integrados
   ========================= */

@media (min-width: 992px) {

  /* El shortcode de Mis Entradas ocupa ancho completo dentro del panel */
  .eh-user-panel .eh-my-tickets-shell,
  .eh-user-panel .eh-my-tickets-enhanced {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .eh-user-panel .eh-ticket-card {
    width: 100%;
    margin: 0;
  }
}

/* Wallet del Evento: botones cómodos en desktop */
@media (min-width: 768px) {

  /* contenedor principal de la wallet integrada */
  .eh-user-panel .eh-wallet-section .eh-wallet-main {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
  }

  .eh-user-panel .eh-wallet-section .eh-wallet-left {
    flex: 0 0 260px;
  }

  .eh-user-panel .eh-wallet-section .eh-wallet-balance {
    width: 100%;
    min-width: 0;
  }

  .eh-user-panel .eh-wallet-section .eh-wallet-actions {
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
  }

  .eh-user-panel .eh-wallet-section .eh-wallet-actions > * {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Ajustes visuales del formulario edit-account dentro del User Panel */
.eh-user-panel-shell .eh-up-section-inner--edit-account {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Que los campos de Woo se vean como tu estilo app */
.eh-user-panel-shell .eh-up-section-inner--edit-account form.woocommerce-EditAccountForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eh-user-panel-shell .eh-up-section-inner--edit-account .woocommerce-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eh-user-panel-shell .eh-up-section-inner--edit-account input[type="text"],
.eh-user-panel-shell .eh-up-section-inner--edit-account input[type="email"],
.eh-user-panel-shell .eh-up-section-inner--edit-account input[type="password"] {
  border-radius: 0.75rem;
  border: 1px solid var(--up-glass-border, rgba(148, 163, 184, 0.35));
  background: rgba(15, 23, 42, 0.85);
  color: var(--up-text-main, #e5e7eb);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.eh-user-panel-shell .eh-up-section-inner--edit-account button,
.eh-user-panel-shell .eh-up-section-inner--edit-account .button {
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg,
    var(--up-primary, #6366f1),
    var(--up-primary-alt, #8b5cf6)
  );
}

/* Que el contenido de my-wallets se vea a ancho completo dentro del panel */
.eh-user-panel__wallet-wrapper {
  padding: 0;
}

/* Ejemplo: centrar y agrandar QRs si tu template usa estas clases */
.eh-my-wallets-shell img,
.eh-wallet-qr img {
  max-width: 260px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}
