.hdr-days-only-label {
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
  padding: 0 2px;
}

.hdr-notif-bell-btn {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 9999px;
  border: 2px solid #f59e0b;
  background: #0f172a;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hdr-notif-bell-btn:hover { transform: scale(1.07); }
.hdr-notif-bell-btn.hidden { display: none !important; }

.hdr-notif-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.6px solid #ef4444;
  color: #dc2626;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.hdr-notif-badge.hidden { display: none !important; }

.hdr-tier-crown-btn {
  width: 35px;
  height: 35px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.hdr-tier-crown-btn:hover { transform: scale(1.07); }
.hdr-tier-crown-btn.hidden { display: none !important; }
.hdr-tier-free { background: #ffffff; border: 2px solid #111827; color: #111827; }
.hdr-tier-pro { background: #0f172a; border: 2px solid #eab308; color: #eab308; box-shadow: 0 0 10px rgba(234, 179, 8, 0.35); }
.hdr-tier-ent { background: #0f172a; border: 2px solid #2563eb; color: #3b82f6; box-shadow: 0 0 10px rgba(37, 99, 235, 0.35); }

.agm-notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.agm-notif-backdrop.hidden { display: none !important; }

.agm-notif-popup-box {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100vw;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 100vw;
  border-radius: 14px;
}

@media (min-width: 768px) {
  .agm-notif-popup-box {
    width: 55vw;
    height: 55vh;
    max-height: 55vh;
    aspect-ratio: auto;
    border-radius: 18px;
  }
}

.agm-notif-item {
  border-radius: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.92);
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.16s ease, transform 0.14s ease;
}
.agm-notif-item:hover { background: rgba(30, 41, 59, 0.95); }
.agm-notif-item.is-read {
  opacity: 0.45;
  filter: saturate(0.5);
}
.agm-notif-cat-EVENT_NEW { border-left: 4px solid #10b981; }
.agm-notif-cat-PLAN_SUBSCRIPTION { border-left: 4px solid #2563eb; }
.agm-notif-cat-SECURITY_ALERT { border-left: 4px solid #ef4444; }

.agm-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
}
.agm-cat-pill.EVENT_NEW { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.agm-cat-pill.PLAN_SUBSCRIPTION { background: rgba(37, 99, 235, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.45); }
.agm-cat-pill.SECURITY_ALERT { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.45); }

.agm-member-menu-pop {
  position: fixed;
  top: 54px;
  right: 14px;
  width: 268px;
  z-index: 2550;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  padding: 6px;
}
.agm-member-menu-pop.hidden { display: none !important; }

.agm-cleanroom-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9500 !important;
  background: rgba(2, 6, 23, 0.88) !important;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.agm-cleanroom-backdrop.hidden { display: none !important; }

.agm-cleanroom-window-88 {
  width: 88vw !important;
  height: 88vh !important;
  max-width: 88vw !important;
  max-height: 88vh !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 9510 !important;
}
.agm-cleanroom-window-88.theme-amber {
  border-color: rgba(251, 191, 36, 0.55);
}

#toast-banner {
  z-index: 9999 !important;
}

.mod-nofly-pro-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.mod-nofly-pro-pill.unlocked {
  background: rgba(234, 179, 8, 0.22);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.55);
}
.mod-nofly-pro-pill.locked {
  background: rgba(15, 23, 42, 0.9);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.mod-nofly-source-box {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.mod-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  margin-right: 4px;
  vertical-align: middle;
}
.mod-dot-red { background: #ef4444; box-shadow: 0 0 5px rgba(239, 68, 68, 0.7); }
.mod-dot-amber { background: #f0a742; box-shadow: 0 0 5px rgba(240, 167, 66, 0.7); }

.mod-nofly-hud-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 13px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #f8fafc;
  font-size: 11.5px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  max-width: calc(100% - 24px);
}
.mod-nofly-hud-badge.hidden { display: none !important; }
.leaflet-container .leaflet-popup-close-button { color: #f8fafc !important; top: 6px !important; right: 6px !important; }
.leaflet-container .leaflet-popup-close-button:hover { color: #fde047 !important; }
.mod-nofly-popup-card { width: 318px; max-width: 82vw; font-size: 12.5px; line-height: 1.5; color: #ffffff !important; }
.mod-popup-hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 8px 4px; border-bottom: 1px solid rgba(226, 232, 240, 0.35); }
.mod-popup-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.mod-popup-pill.nofly { background: #fee2e2; color: #991b1b; border: 1.5px solid #f87171; }
.mod-popup-pill.restr { background: #fef3c7; color: #92400e; border: 1.5px solid #fbbf24; }
.mod-popup-alert { margin-top: 9px; padding: 9px 11px; border-radius: 9px; display: flex; align-items: center; gap: 9px; }
.mod-popup-alert.nofly { background: #fef2f2; border: 1.2px solid #fca5a5; color: #991b1b; }
.mod-popup-alert.restr { background: #fffbeb; border: 1.2px solid #fcd34d; color: #78350f; }
.mod-popup-alert-sep { width: 1.5px; align-self: stretch; background: #dc2626; flex-shrink: 0; border-radius: 2px; }
.mod-popup-alert-txt { flex: 1 1 auto; text-align: justify; font-weight: 700; font-size: 11.5px; line-height: 1.46; }
.mod-popup-grid { margin-top: 10px; display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 8px; row-gap: 5px; align-items: baseline; color: #ffffff; font-size: 12.5px; }
.mod-popup-lbl { color: #93c5fd; font-weight: 700; white-space: nowrap; }
.mod-popup-val { color: #ffffff; font-weight: 700; word-break: break-word; }
.mod-popup-code { font-family: 'JetBrains Mono', monospace; font-weight: 800; color: #fde047; word-break: break-word; }
.mod-popup-ftr { margin-top: 10px; padding-top: 7px; border-top: 1px dashed rgba(226, 232, 240, 0.45); font-size: 11.5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #ffffff; }
.leaflet-container a.mod-popup-link-gold { color: #fde047 !important; font-weight: 800; text-decoration: underline; }
.leaflet-container a.mod-popup-link-gold:hover { color: #fef9c3 !important; }
.leaflet-container a.mod-popup-link-sky { color: #7dd3fc !important; font-weight: 700; font-size: 11px; text-decoration: underline; }
.leaflet-container a.mod-popup-link-sky:hover { color: #bae6fd !important; }

.mobile-left-gps-dock {
  position: fixed;
  bottom: 20px;
  left: 14px;
  z-index: 2150;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mobile-dock-action-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (max-width: 767px) {
  header #btn-my-gps,
  header #btn-add-pin,
  header #nav-passport-btn {
    display: none !important;
  }
  .mobile-left-gps-dock {
    display: flex;
  }
  #hotline-chat-dock {
    bottom: 20px !important;
    right: 14px !important;
    gap: 12px !important;
  }
  #btn-expand-left-sidebar {
    bottom: 126px !important;
  }
  .leaflet-bottom.leaflet-left {
    margin-left: 54px !important;
  }
}

