/* Vanguard Select — portal notifications (bell, dropdown, Tier 1 banners) */

.vg-pn-root {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.vg-pn-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #9aa3b2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.vg-pn-bell:hover,
.vg-pn-bell[aria-expanded="true"] {
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
}

.vg-pn-bell svg {
  width: 20px;
  height: 20px;
  display: block;
}

.vg-pn-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  pointer-events: none;
}

.vg-pn-badge[hidden] {
  display: none !important;
}

.vg-pn-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  overflow: hidden;
  background: var(--dark-2, #111);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  z-index: 120;
  flex-direction: column;
}

.vg-pn-dropdown.open {
  display: flex;
}

.vg-pn-dropdown-hdr {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #2a2a2a);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
}

.vg-pn-dropdown-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vg-pn-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--border, #2a2a2a);
  background: transparent;
  color: var(--text, #e8e8e8);
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  min-height: 44px;
}

.vg-pn-item:last-child {
  border-bottom: none;
}

.vg-pn-item:hover,
.vg-pn-item:focus-visible {
  background: rgba(201, 168, 76, 0.08);
  outline: none;
}

.vg-pn-item-title {
  font-weight: 600;
  color: var(--text, #e8e8e8);
  margin-bottom: 2px;
}

.vg-pn-item--unread .vg-pn-item-title {
  font-weight: 700;
  color: var(--text, #e8e8e8);
}

.vg-pn-item--read .vg-pn-item-title {
  font-weight: 500;
  color: var(--text-muted, #b0b8c4);
}

.vg-pn-item--read .vg-pn-item-msg {
  color: var(--text-muted, #6a7380);
}

.vg-pn-item-msg {
  color: var(--text-muted, #9aa3b2);
  font-size: 12px;
}

.vg-pn-item-meta {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted, #6a7380);
  font-family: monospace;
}

.vg-pn-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vg-pn-act {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border, #2a2a2a);
  background: transparent;
  color: var(--text, #e8e8e8);
}

.vg-pn-act--approve {
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
}

.vg-pn-act--view {
  border-color: var(--border, #2a2a2a);
  color: var(--text, #e8e8e8);
}

.vg-pn-act--deny {
  border-color: #e74c3c;
  color: #e74c3c;
}

.vg-pn-act:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vg-pn-item-feedback {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 0 2px;
}
.vg-pn-item-feedback--ok {
  color: var(--gold, #c9a84c);
}
.vg-pn-item-feedback--err {
  color: #e74c3c;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

@media (max-width: 768px) {
  .vg-pn-item-actions {
    flex-direction: column;
  }

  .vg-pn-act {
    width: 100%;
  }
}

.vg-pn-item--t1 .vg-pn-item-meta {
  color: #f39c12;
}

.vg-pn-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-muted, #9aa3b2);
  font-size: 13px;
}

.vg-pn-banner-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.vg-pn-banner-stack:empty {
  display: none;
}

.vg-pn-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #2a2a2a);
  background: var(--dark-2, #111);
  font-size: 14px;
  line-height: 1.55;
}

.vg-pn-banner--urgent {
  border-left: 4px solid #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

.vg-pn-banner--amber {
  border-left: 4px solid #f39c12;
  background: rgba(243, 156, 18, 0.08);
}

.vg-pn-banner-body {
  flex: 1;
  min-width: 0;
}

.vg-pn-banner-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  margin-bottom: 2px;
}

.vg-pn-banner-msg {
  color: var(--text, #e8e8e8);
  font-size: 13px;
}

.vg-pn-banner-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}

.vg-pn-banner-link:hover {
  text-decoration: underline;
}

.vg-pn-dismiss {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted, #9aa3b2);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.vg-pn-dismiss:hover {
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
}

@media (max-width: 768px) {
  .vg-pn-dropdown {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 75vh;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .vg-pn-dropdown.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
  }

  .vg-pn-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .vg-pn-dismiss {
    width: 100%;
  }
}
