/* Roots Academy notifications — matches reference design */
.roots-notif-wrap { position: relative; display: inline-block; }

.roots-notif-wrap .rn-bell,
.topbar-notif-wrap .notif-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E9E3D9;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #5C5568;
  padding: 0;
  transition: color .12s, border-color .12s;
}
.roots-notif-wrap .rn-bell:hover,
.topbar-notif-wrap .notif-btn:hover {
  color: #6E5E8A;
  border-color: #6E5E8A;
}
.roots-notif-wrap .rn-bell svg,
.topbar-notif-wrap .notif-btn svg { width: 19px; height: 19px; pointer-events: none; }

.roots-notif-wrap .rn-badge,
.topbar-notif-wrap .notif-btn .badge,
.topbar-notif-wrap .rn-badge,
.topbar-notif-wrap #notification-count,
.topbar-notif-wrap #admin-notification-count,
.topbar-notif-wrap .badge-danger {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #B4533A !important;
  color: #fff !important;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 2px solid #FAF7F1;
  z-index: 2;
}

.rn-panel,
.notif-dropdown,
.topbar-notif-wrap .dropdown-menu.dropdown-menu-lg {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 420px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #E9E3D9 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 10px rgba(46, 42, 56, .06), 0 18px 50px rgba(46, 42, 56, .14) !important;
  overflow: hidden;
  z-index: 1050;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  transform: none !important;
  font-family: 'Manrope', system-ui, sans-serif;
}
.notif-dropdown { display: none; }
.notif-dropdown.show,
.topbar-notif-wrap .dropdown-menu.show,
.roots-notif-wrap > .rn-panel.show { display: block; }
.roots-notif-wrap > .rn-panel:not(.show) { display: none; }

/* header */
.rn-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px;
}
.rn-head h2 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.01em;
  color: #2E2A38;
}
.rn-head .rn-count {
  background: #EDE9F4;
  color: #6E5E8A;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.rn-mark-read {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #6E5E8A;
  padding: 5px 8px;
  border-radius: 8px;
}
.rn-mark-read:hover { background: #EDE9F4; }

/* tabs */
.rn-tabs {
  display: flex;
  gap: 4px;
  padding: 0 18px 12px;
  border-bottom: 1px solid #E9E3D9;
  flex-wrap: wrap;
}
.rn-tab {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #8A8294;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
}
.rn-tab:hover { color: #2E2A38; }
.rn-tab[aria-selected="true"] {
  background: #2E2A38;
  color: #fff;
}

/* list */
.rn-list {
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rn-list::-webkit-scrollbar { width: 9px; }
.rn-list::-webkit-scrollbar-thumb {
  background: #DCD3EA;
  border-radius: 99px;
  border: 2px solid #fff;
}

.rn-group {
  padding: 12px 18px 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8A8294;
  margin: 0;
}

.rn-item {
  display: flex;
  gap: 13px;
  padding: 13px 18px;
  cursor: pointer;
  position: relative;
  transition: background .12s;
  border-top: 1px solid #F4F0E9;
}
.rn-group + .rn-item,
.rn-list > .rn-item:first-child { border-top: none; }
.rn-item:hover { background: #FAF7F1; }

.rn-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.rn-icon svg { width: 18px; height: 18px; }
.rn-i-assign { background: #EDE9F4; color: #6E5E8A; }
.rn-i-test { background: #F7EBD4; color: #A87B22; }
.rn-i-submit { background: #E3EFE8; color: #3E7C5B; }
.rn-i-system { background: #E4EBF4; color: #4A6FA5; }
.rn-i-alert { background: #F6E5DF; color: #B4533A; }

.rn-body { flex: 1; min-width: 0; }
.rn-line1 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #5C5568;
}
.rn-line1 b,
.rn-line1 strong { color: #2E2A38; font-weight: 700; }
.rn-line1 a { color: inherit; text-decoration: none; pointer-events: none; }

.rn-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
  font-size: 12px;
  color: #8A8294;
}
.rn-chip {
  background: #FAF7F1;
  border: 1px solid #E9E3D9;
  border-radius: 999px;
  padding: 1.5px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #5C5568;
}

.rn-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6E5E8A;
  flex-shrink: 0;
  margin-top: 15px;
}
.rn-item.read .rn-unread-dot { visibility: hidden; }
.rn-item.read .rn-line1 b,
.rn-item.read .rn-line1 strong { font-weight: 600; color: #5C5568; }
.rn-item.read .rn-icon { opacity: .65; }

.rn-action-row { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.rn-mini {
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #E9E3D9;
  background: #fff;
  color: #5C5568;
  text-decoration: none;
  display: inline-block;
}
.rn-mini:hover { border-color: #6E5E8A; color: #6E5E8A; }
.rn-mini.primary {
  background: #6E5E8A;
  border-color: #6E5E8A;
  color: #fff;
}
.rn-mini.primary:hover { background: #5E4F78; border-color: #5E4F78; color: #fff; }

.rn-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 46px 20px;
  color: #8A8294;
}
.rn-empty.is-visible { display: flex; }
.rn-empty .rn-empty-ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FAF7F1;
  display: grid;
  place-items: center;
  color: #6E5E8A;
}
.rn-empty p { margin: 0; font-size: 13.5px; text-align: center; line-height: 1.5; }
.rn-empty p b {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: #2E2A38;
  font-size: 15.5px;
  display: block;
  margin-bottom: 3px;
}

.rn-state {
  padding: 46px 20px;
  text-align: center;
  font-size: 13.5px;
  color: #8A8294;
  margin: 0;
}

.rn-foot {
  display: flex;
  border-top: 1px solid #E9E3D9;
  background: #fff;
}
.rn-foot a {
  flex: 1;
  text-align: center;
  padding: 13px;
  font-size: 13px;
  font-weight: 800;
  color: #6E5E8A;
  text-decoration: none;
}
.rn-foot a:hover { background: #EDE9F4; }
.rn-foot a + a { border-left: 1px solid #E9E3D9; }

.rn-panel > .p-3,
.rn-panel > .p-2 { display: none; }

@media (max-width: 560px) {
  .rn-panel,
  .notif-dropdown,
  .topbar-notif-wrap .dropdown-menu.dropdown-menu-lg {
    width: min(420px, calc(100vw - 24px));
  }
}

button.rn-bell:focus-visible,
.rn-foot a:focus-visible,
.rn-item:focus-visible,
.rn-tab:focus-visible,
.rn-mark-read:focus-visible,
.rn-mini:focus-visible {
  outline: 2px solid #6E5E8A;
  outline-offset: 2px;
}
