/* ============================================================
   PUSH — Campana + Panel de notificaciones
   ============================================================ */

.push-bell {
  position: relative;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all .2s;
  flex-shrink: 0;
  padding: 0;
}

.push-bell:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--border-strong);
}

.push-bell.has-unread {
  border-color: var(--gold);
  animation: bellPulse 1.8s ease-in-out infinite;
}

@keyframes bellPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 204, 68, 0);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 204, 68, .6);
  }
}

.push-bell-icon {
  line-height: 1;
  transition: transform .2s;
}

.push-bell:hover .push-bell-icon {
  transform: rotate(-12deg);
}

.push-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-0);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  animation: badgePop .3s cubic-bezier(.34,1.56,.64,1);
}

.push-bell-badge.hidden { display: none; }

@keyframes badgePop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- PANEL ---------- */
.push-panel {
  position: fixed;
  top: 60px;
  right: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: rgba(13, 20, 32, .98);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 350;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pushSlide .22s cubic-bezier(.34,1.56,.64,1);
}

.push-panel.hidden { display: none; }

@keyframes pushSlide {
  from { opacity: 0; transform: translateY(-10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.push-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .2);
}

.push-panel-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .5px;
}

.push-panel-actions {
  display: flex;
  gap: 4px;
}

.push-panel-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all .15s;
  padding: 0;
}

.push-panel-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  border-color: var(--border-strong);
}

.push-panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(70vh - 60px);
  -webkit-overflow-scrolling: touch;
}

.push-panel-list::-webkit-scrollbar { width: 6px; }
.push-panel-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

/* ---------- ITEM ---------- */
.push-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid transparent;
  border-left: 3px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}

.push-item:hover {
  background: rgba(255, 255, 255, .07);
  border-color: var(--border-strong);
}

.push-item.no-leida {
  background: rgba(255, 204, 68, .05);
  border-left-color: var(--gold);
}

.push-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.push-item-body {
  flex: 1;
  min-width: 0;
}

.push-item-titulo {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.push-item.no-leida .push-item-titulo {
  color: var(--gold);
}

.push-item-msg {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 3px;
  word-break: break-word;
}

.push-item-time {
  font-size: 9px;
  color: var(--text-dim);
  opacity: .7;
  font-variant-numeric: tabular-nums;
}

/* ---------- EMPTY ---------- */
.push-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 12px;
}

.push-empty p {
  margin-top: 8px;
  font-size: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .push-bell {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .push-panel {
    top: 56px;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    max-height: 75vh;
  }

  .push-panel-list {
    max-height: calc(75vh - 60px);
  }
}