.lang-switch-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 2px 10px !important;
  margin: 0 4px;
  min-width: 44px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff !important;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

.topbar-notification {
  position: relative;
}

.notification-toggle {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(9, 63, 118, 0.95);
}

.notification-badge.is-empty {
  background: #7f97b1;
}

.notification-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 92vw);
  max-height: 72vh;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe7f4;
  box-shadow: 0 16px 36px rgba(8, 35, 62, 0.24);
  border-radius: 0.9rem;
  z-index: 1600;
}

.topbar-notification.is-open .notification-dropdown {
  display: block;
  animation: notifDropIn 0.18s ease-out;
}

@keyframes notifDropIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notification-header {
  padding: 0.72rem 0.86rem;
  border-bottom: 1px solid #e5edf6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.notification-title-wrap strong {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #163a5f;
  white-space: nowrap;
}

.notification-title-wrap small {
  font-size: 0.72rem;
  color: #69829e;
}

.notification-clear-btn {
  border: 1px solid #f3b3b3;
  background: #fff5f5;
  color: #b43434;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.notification-clear-btn:hover {
  background: #ffe9e9;
}

.notification-list {
  max-height: calc(72vh - 56px);
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.notification-item {
  display: block;
  padding: 0.72rem 0.86rem;
  border-bottom: 1px solid #eaf1f9;
  text-decoration: none;
  color: #2c4562;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover {
  background: #eef5ff;
  color: #183d64;
}

.notification-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.notification-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: #183e66;
}

.notification-item-time {
  font-size: 0.7rem;
  color: #6e86a1;
  white-space: nowrap;
}

.notification-item-subtitle {
  margin-top: 4px;
  font-size: 0.74rem;
  color: #597694;
  line-height: 1.4;
}

.notification-item-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #b8d2ef;
  background: #f0f7ff;
  color: #1c5b94;
  font-size: 0.69rem;
  font-weight: 700;
}

.notification-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: #667f98;
  font-size: 0.83rem;
}

@media (max-width: 575.98px) {
  .notification-dropdown {
    right: -52px;
    width: min(380px, 95vw);
  }
}
