/* ============================================
   TOPBAR ALERTS BUTTON (Mobile Only)
   ============================================ */

@media (max-width: 1023px) {

  /* Topbar right section - flex layout for Alerts + Profile */
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between Alerts and Profile */
  }

  /* Alerts button in topbar */
  .topbar-alerts-btn {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .topbar-alerts-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.1);
  }

  /* Alerts icon */
  .topbar-alerts-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
  }

  .topbar-alerts-btn:hover .topbar-alerts-icon {
    color: #ff6b1a;
  }

  /* Alerts badge in topbar */
  .topbar-alerts-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: #ff3a5c;
    border: 2px solid rgba(10, 10, 15, 1);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(255, 58, 92, 0.4);
  }

  .topbar-alerts-badge.hidden {
    display: none;
  }

  /* Profile button - ensure it's aligned */
  .topbar-me-btn {
    flex-shrink: 0;
  }
}

/* Desktop - no changes needed */
@media (min-width: 1024px) {
  .topbar-alerts-btn {
    display: none; /* Hide on desktop */
  }
}
